mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 18:31:15 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user