Always use bool and Literal for Python compat code (#9213)

This commit is contained in:
Nikita Sobolev
2022-11-16 21:00:59 +03:00
committed by GitHub
parent 9137258cf4
commit c6261372d7
8 changed files with 30 additions and 23 deletions

View File

@@ -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]