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

@@ -355,7 +355,7 @@
class MyManager(models.Manager):
def get_instance(self) -> int:
pass
def get_instance_untyped(self, name: str):
def get_instance_untyped(self, name: str): # type: ignore[no-untyped-def]
pass
class User(models.Model):
objects = MyManager()