mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-22 22:07:09 +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:
1 parent
e3c131bc61
commit
8f475fa0a6
104 files changed
+747
-740
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user