massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / MarkupSafe / markupsafe / _compat.pyi
1 import sys
2 from typing import Iterator, Mapping, TypeVar
3
4 _K = TypeVar("_K")
5 _V = TypeVar("_V")
6
7 PY2: bool
8
9 def iteritems(d: Mapping[_K, _V]) -> Iterator[tuple[_K, _V]]: ...
10
11 if sys.version_info >= (3,):
12     text_type = str
13     string_types = (str,)
14     unichr = chr
15     int_types = (int,)
16 else:
17     from __builtin__ import unichr as unichr
18
19     text_type = unicode
20     string_types = (str, unicode)
21     int_types = (int, long)