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
@rchen152 I am sorry for the mention spam, but does pytype support PEP 613? If not, would you mind me creating a ticket that we can reference from here?
Activity
[-]PEP 613 Explicit Type Aliases tracker[/-][+]PEP 613 (Explicit Type Aliases) tracker[/+]srittau commentedon Jan 6, 2021
@rchen152 I am sorry for the mention spam, but does pytype support PEP 613? If not, would you mind me creating a ticket that we can reference from here?
sproshev commentedon Jan 6, 2021
Supported since PyCharm 2020.3 https://youtrack.jetbrains.com/issue/PY-42334
rchen152 commentedon Jan 7, 2021
pytype doesn't support this yet. Opened google/pytype#787.
srittau commentedon Jun 14, 2021
I used this simple script to test this feature.
srittau commentedon Dec 22, 2021
mypy 0.930 now supports this.
rchen152 commentedon Mar 22, 2022
pytype-2022.03.21 supports explicit type aliases.
AlexWaygood commentedon Mar 22, 2022
Seems like there's nothing left to do here :)
srittau commentedon Mar 22, 2022
Reopening as mypy still seems to have problems. #7534
AlexWaygood commentedon Mar 22, 2022
@rchen152, #7534 also has several pytype errors, but they all look like valid type aliases to me — any idea what the problem is? :)
rchen152 commentedon Mar 22, 2022
Whoops, that's embarrassing XD
It looks almost like the type aliases aren't being stored at all - I'll investigate.
srittau commentedon Mar 30, 2022
mypy and pytype are now fixed. 🎉
laundmo commentedon Apr 4, 2022
Does the closing of this issue mean that TypeAlias can now be used in TypeShed?
if yes, this should probably be edited:
typeshed/CONTRIBUTING.md
Lines 241 to 242 in be64b01
AlexWaygood commentedon Apr 4, 2022
It does — and yes,
CONTRIBUTINGdoes need to be edited :) I think the guidance onParamSpecis also slightly out of date.PR welcome, if you'd like to help out!
kkirsche commentedon Jul 25, 2022
#8397 created to address this