mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 22:31:26 +08:00
Always use bool and Literal for Python compat code (#9213)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from io import TextIOWrapper
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
PY2: bool
|
||||
PY3: bool
|
||||
PY2: Literal[False]
|
||||
PY3: Literal[True]
|
||||
WIN: bool
|
||||
string_types: tuple[str]
|
||||
integer_types: tuple[int]
|
||||
|
||||
Reference in New Issue
Block a user