-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs
Description
- mypy (Support recursive types mypy#731), supported using a flag
- pytype
- pyright
- pyre
- PyCharm
Test case:
from typing import TypeAlias
Recursive: TypeAlias = str | list["Recursive"]
def foo(r: Recursive) -> None:
if not isinstance(r, str):
foo(r[0])
if not isinstance(r, list):
r.casefold()
foo("")
foo(list(""))
foo(list(list(""), ""))madig
Metadata
Metadata
Assignees
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs