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.
It's pretty common to conditionally import a class. Here is a synthetic example:
It's not quite obvious how code like the above should be type checked, as
m1.Candm2.CCgenerally don't have identical interfaces.See also #649.