This repository has been archived on 2022-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
ergast-py/ergast_py/models/constructor_standing.py

29 lines
813 B
Python
Raw Normal View History

""" ConstructorStanding class """
2022-06-01 14:31:52 +01:00
from dataclasses import dataclass
from ergast_py.models.constructor import Constructor
from ergast_py.models.model import Model
2022-06-01 14:31:52 +01:00
@dataclass
class ConstructorStanding(Model):
2022-06-01 14:31:52 +01:00
"""
Representation of a Formula One Constructor's standing in a Season
2022-06-01 14:31:52 +01:00
Constructor Standings may contain:
position: Integer
position_text: String
2022-06-01 14:31:52 +01:00
points: Float
wins: Integer
constructor: Constructor
"""
def __init__(self, position: int, position_text: str, points: float, wins: int, #pylint: disable=too-many-arguments
constructor: Constructor) -> None:
2022-06-01 14:31:52 +01:00
self.position = position
self.position_text = position_text
2022-06-01 14:31:52 +01:00
self.points = points
self.wins = wins
self.constructor = constructor