Subclassing generic class using ParamSpec
fails depending on how base class is referenced
#14761
Labels
ParamSpec
fails depending on how base class is referenced
#14761
Bug Report
Mypy reports an issue with subclassing generic class using
ParamSpec
, but only when the base class is referenced via module attribute access.To Reproduce
File
test1.py
File
test2_good.py
File
test2_bad.py
Expected Behavior
When running Mypy against the
test2_good.py
file, no issues are reported. This is what I expect.Actual Behavior
When running Mypy against the
test2_bad.py
file, an issue is reported. The only difference is how the base class is specified.Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: