mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
2
third_party/2and3/boto/utils.pyi
vendored
2
third_party/2and3/boto/utils.pyi
vendored
@@ -25,7 +25,7 @@ from typing import (
|
||||
_KT = TypeVar('_KT')
|
||||
_VT = TypeVar('_VT')
|
||||
|
||||
if sys.version_info[0] >= 3:
|
||||
if sys.version_info >= (3,):
|
||||
# TODO move _StringIO definition into boto.compat once stubs exist and rename to StringIO
|
||||
import io
|
||||
_StringIO = io.StringIO
|
||||
|
||||
2
third_party/2and3/markupsafe/__init__.pyi
vendored
2
third_party/2and3/markupsafe/__init__.pyi
vendored
@@ -49,5 +49,5 @@ class EscapeFormatter(string.Formatter):
|
||||
def __init__(self, escape: Callable[[text_type], Markup]) -> None: ...
|
||||
def format_field(self, value: text_type, format_spec: text_type) -> Markup: ...
|
||||
|
||||
if sys.version_info[0] >= 3:
|
||||
if sys.version_info >= (3,):
|
||||
soft_str = soft_unicode
|
||||
|
||||
2
third_party/2and3/markupsafe/_compat.pyi
vendored
2
third_party/2and3/markupsafe/_compat.pyi
vendored
@@ -7,7 +7,7 @@ _V = TypeVar('_V')
|
||||
|
||||
PY2: bool
|
||||
def iteritems(d: Mapping[_K, _V]) -> Iterator[Tuple[_K, _V]]: ...
|
||||
if sys.version_info[0] >= 3:
|
||||
if sys.version_info >= (3,):
|
||||
text_type = str
|
||||
string_types = str,
|
||||
unichr = chr
|
||||
|
||||
Reference in New Issue
Block a user