Prefix OpenF1 classes + functions with "openf1"
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
from typing import Any, Callable, Dict
|
||||
|
||||
|
||||
class ApiDriver:
|
||||
class OpenF1Driver:
|
||||
__type_conversion_map__: Dict[str, Callable[[Any], Any]] = {
|
||||
"session_key": int,
|
||||
"meeting_key": int,
|
||||
@ -30,7 +30,7 @@ class ApiDriver:
|
||||
|
||||
setattr(self, key, self.__type_conversion_map__[key](response[key]))
|
||||
|
||||
print("ApiDriver:", self.__dict__)
|
||||
print("OpenF1Driver:", self.__dict__)
|
||||
|
||||
def to_params(self) -> Dict[str, str]:
|
||||
params: Dict[str, str] = dict()
|
||||
@ -2,7 +2,7 @@ from datetime import datetime
|
||||
from typing import Any, Callable, Dict
|
||||
|
||||
|
||||
class ApiPosition:
|
||||
class OpenF1Position:
|
||||
__type_conversion_map__: Dict[str, Callable[[Any], Any]] = {
|
||||
"session_key": int,
|
||||
"meeting_key": int,
|
||||
@ -24,7 +24,7 @@ class ApiPosition:
|
||||
|
||||
setattr(self, key, self.__type_conversion_map__[key](response[key]))
|
||||
|
||||
print("ApiPosition:", self.__dict__)
|
||||
print("OpenF1Position:", self.__dict__)
|
||||
|
||||
def to_params(self) -> Dict[str, str]:
|
||||
params: Dict[str, str] = dict()
|
||||
@ -2,7 +2,7 @@ from datetime import datetime, time
|
||||
from typing import Any, Callable, Dict
|
||||
|
||||
|
||||
class ApiSession:
|
||||
class OpenF1Session:
|
||||
__type_conversion_map__: Dict[str, Callable[[Any], Any]] = {
|
||||
"location": str,
|
||||
"country_key": int,
|
||||
@ -35,7 +35,7 @@ class ApiSession:
|
||||
|
||||
setattr(self, key, self.__type_conversion_map__[key](response[key]))
|
||||
|
||||
print("ApiSession:", self.__dict__)
|
||||
print("OpenF1Session:", self.__dict__)
|
||||
|
||||
def to_params(self) -> Dict[str, str]:
|
||||
params: Dict[str, str] = dict()
|
||||
Reference in New Issue
Block a user