mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-30 16:14:25 +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:
@@ -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