mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-03 11:07:31 +08:00
Support mypy 0.750
This commit is contained in:
1 parent
df4c17a947
commit
cbc7159995
13 files changed
+43
-29
No files matched your search
@@ -318,7 +318,7 @@
|
||||
content: |
|
||||
from django.db import models
|
||||
class MyManager(models.Manager):
|
||||
def get_instance(self) -> int:
|
||||
def get_instance(self: "models.Manager[User]") -> int:
|
||||
pass
|
||||
class User(models.Model):
|
||||
objects = MyManager()
|
||||
Reference in new issue
Block a user