my[py], static typing reports some error.
$ poetry run mypy f1pystats tests
$ poetry run mypy f1pystats tests
f1pystats/f1pystats.py:3: error: Skipping analyzing "pandas": module is installed, but missing library stubs or py.typed marker [import]
f1pystats/f1pystats.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
f1pystats/f1pystats.py:68: error: Incompatible default for argument "round_num" (default has type "None", argument has type "int") [assignment]
f1pystats/f1pystats.py:68: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
f1pystats/f1pystats.py:68: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
f1pystats/f1pystats.py:274: error: No overload variant of "zip" matches argument types "Any", "int", "Any", "Any", "Any" [call-overload]
f1pystats/f1pystats.py:274: note: Possible overload variants:
f1pystats/f1pystats.py:274: note: def [_T_co, _T1] zip(cls, Iterable[_T1], /, *, strict: bool = ...) -> zip[Tuple[_T1]]
f1pystats/f1pystats.py:274: note: def [_T_co, _T1, _T2] zip(cls, Iterable[_T1], Iterable[_T2], /, *, strict: bool = ...) -> zip[Tuple[_T1, _T2]]
f1pystats/f1pystats.py:274: note: def [_T_co, _T1, _T2, _T3] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], /, *, strict: bool = ...) -> zip[Tuple[_T1, _T2, _T3]]
f1pystats/f1pystats.py:274: note: def [_T_co, _T1, _T2, _T3, _T4] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], /, *, strict: bool = ...) -> zip[Tuple[_T1, _T2, _T3, _T4]]
f1pystats/f1pystats.py:274: note: def [_T_co, _T1, _T2, _T3, _T4, _T5] zip(cls, Iterable[_T1], Iterable[_T2], Iterable[_T3], Iterable[_T4], Iterable[_T5], /, *, strict: bool = ...) -> zip[Tuple[_T1, _T2, _T3, _T4, _T5]]
f1pystats/f1pystats.py:274: note: def [_T_co] zip(cls, Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], /, *iterables: Iterable[Any], strict: bool = ...) -> zip[Tuple[Any, ...]]
f1pystats/f1pystats.py:332: error: Incompatible default for argument "year" (default has type "None", argument has type "int") [assignment]
f1pystats/f1pystats.py:332: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
f1pystats/f1pystats.py:332: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
f1pystats/f1pystats.py:397: error: Incompatible default for argument "year" (default has type "None", argument has type "int") [assignment]
f1pystats/f1pystats.py:397: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
f1pystats/f1pystats.py:397: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
Found 5 errors in 1 file (checked 44 source files)