Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, extracted_data):
YahooFantasyObject.__init__(self, extracted_data)
self.divisional_outcome_totals = self.extracted_data.get(
"divisional_outcome_totals", DivisionalOutcomeTotals({})) # type: DivisionalOutcomeTotals
self.outcome_totals = self.extracted_data.get("outcome_totals", OutcomeTotals({})) # type: OutcomeTotals
self.playoff_seed = self.extracted_data.get("playoff_seed", 0)
self.points_against = float(self.extracted_data.get("points_against", 0) or 0)
self.points_for = float(self.extracted_data.get("points_for", 0) or 0)
self.rank = self.extracted_data.get("rank", 0)
self.streak = self.extracted_data.get("streak", Streak({})) # type: Streak