Fix mypy cache of WithAnnotation types (#725)

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

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()):