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
Support definitions for built-in type aliases List, Set in the stub for typing. Currently these don't work, which is a problem since typeshed includes these, whereas test fixtures don't.
The text was updated successfully, but these errors were encountered:
FWIW I just whitelisting some test cases to the new semantic analyzer, and it looks like many of them are blocked by this:
Actual:
tmp/builtins.pyi:1: error: Module 'typing' has no attribute 'List' (diff)
tmp/builtins.pyi:1: error: Module 'typing' has no attribute 'Set' (diff)
I will work on this next to unblock the situation.
Fixes#6297
This adds support for real typeshed stubs that define dummy aliases like `typing.List`, `typing.Dict`, etc. This also fixes couple related issues, so that builtin SCC is almost clean (the two remaining errors are #6295 and #6357).
Most notably, this PR introduces some re-ordering of targets in builtin SCC, removing this reordering requires some non-trivial work (namely #6356, #6355, and deferring targets from `named_type()`).
Support definitions for built-in type aliases
List
,Set
in the stub fortyping
. Currently these don't work, which is a problem since typeshed includes these, whereas test fixtures don't.The text was updated successfully, but these errors were encountered: