In functools.partial, container of subclass is not recognized as container of baseclass #4044
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Code Snippet
Expected behavior
No errors reported.
Actual behavior
Argument of type "list[SubClass]" cannot be assigned to parameter "base" of type "list[BaseClass]" in function func_list" Pylance(reportGeneralTypeIssues)
Argument of type "set[SubClass]" cannot be assigned to parameter "base" of type "set[BaseClass]" in function "func_set" Pylance(reportGeneralTypeIssues)
The text was updated successfully, but these errors were encountered: