You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example below, if we just specify bound=FactoryBase on the _FactoryBase typevar, mypy gives error: Argument 1 to "make" of "FactoryBase" has incompatible type "int"; expected "T".
Activity
ilevkivskyi commentedon May 16, 2017
It looks like this is a duplicate of #2354 (although I am not 100% sure).
ilevkivskyi commentedon May 16, 2017
Maybe it makes to copy this example (i.e. with
@classmethod) to the original issue an close this one?ilevkivskyi commentedon Jun 11, 2019
FWIW the original example (with
bound=FactoryBase) works correctly on master.