Fill remaining missing hints with Any & disallow partial hints (#1206)

* Fill remaining missing hints with Any & disallow partial hints

* ModelFormatDict -> _ModelFormatDict

* Fixes

* Add __init__ return hints

* Add suppression
This commit is contained in:
Marti Raudsepp
2022-10-31 13:33:59 +02:00
committed by GitHub
parent e3c131bc61
commit 8f475fa0a6
104 changed files with 747 additions and 740 deletions

View File

@@ -35,7 +35,7 @@ class MPGeneric(Generic[_T]):
possible issues we may run into with this method.
"""
def __init__(self, cls: Type[_T], version: Optional[_VersionSpec] = None):
def __init__(self, cls: Type[_T], version: Optional[_VersionSpec] = None) -> None:
"""Set the data fields, basic constructor."""
self.version = version
self.cls = cls