mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-13 23:41:55 +08:00
Fix mypy cache of WithAnnotation types (#725)
This commit is contained in:
committed by
GitHub
parent
1672b54c89
commit
3f340c9df3
@@ -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