-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codeneeds discussionpriority-1-normal
Description
It's pretty common to conditionally import a class. Here is a synthetic example:
try:
from m1 import C
except ImportError:
from m2 import CC as C
It's not quite obvious how code like the above should be type checked, as m1.C
and m2.CC
generally don't have identical interfaces.
See also #649.
tonygrue-dbx, Naddiseo, tuukkamustonen and mr-c
Metadata
Metadata
Assignees
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codeneeds discussionpriority-1-normal