mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-18 20:11:29 +08:00
Fix mypy cache of WithAnnotation types (#725)
This commit is contained in:
1 parent
1672b54c89
commit
3f340c9df3
3 files changed
+27
-26
No files matched your search
@@ -121,6 +121,7 @@ class DjangoContext:
|
||||
if "," in fullname:
|
||||
# Remove second type arg, which might be present
|
||||
fullname = fullname[: fullname.index(",")]
|
||||
fullname = fullname.replace("__", ".")
|
||||
|
||||
module, _, model_cls_name = fullname.rpartition(".")
|
||||
for model_cls in self.model_modules.get(module, set()):
|
||||
|
||||
Reference in new issue
Block a user