Fix mypy cache of WithAnnotation types (#725)

This commit is contained in:
Konstantin Alekseev authored and GitHub committed 2022-03-25 01:13:20 +03:00
1 parent 1672b54c89
commit 3f340c9df3
3 files changed
+27 -26

No files matched your search

+1
View File
@@ -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()):