massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Werkzeug / werkzeug / _compat.pyi
1 import sys
2 from typing import Any, Text
3
4 if sys.version_info >= (3,):
5     from io import BytesIO as BytesIO, StringIO as StringIO
6
7     NativeStringIO = StringIO
8 else:
9     import cStringIO
10     from StringIO import StringIO as StringIO
11
12     BytesIO = cStringIO.StringIO
13     NativeStringIO = BytesIO
14
15 PY2: Any
16 WIN: Any
17 unichr: Any
18 text_type: Any
19 string_types: Any
20 integer_types: Any
21 iterkeys: Any
22 itervalues: Any
23 iteritems: Any
24 iterlists: Any
25 iterlistvalues: Any
26 int_to_byte: Any
27 iter_bytes: Any
28
29 def fix_tuple_repr(obj): ...
30 def implements_iterator(cls): ...
31 def implements_to_string(cls): ...
32 def native_string_result(func): ...
33 def implements_bool(cls): ...
34
35 range_type: Any
36
37 def make_literal_wrapper(reference): ...
38 def normalize_string_tuple(tup): ...
39 def try_coerce_native(s): ...
40
41 wsgi_get_bytes: Any
42
43 def wsgi_decoding_dance(s, charset: Text = ..., errors: Text = ...): ...
44 def wsgi_encoding_dance(s, charset: Text = ..., errors: Text = ...): ...
45 def to_bytes(x, charset: Text = ..., errors: Text = ...): ...
46 def to_native(x, charset: Text = ..., errors: Text = ...): ...
47 def reraise(tp, value, tb: Any | None = ...): ...
48
49 imap: Any
50 izip: Any
51 ifilter: Any
52
53 def to_unicode(x, charset: Text = ..., errors: Text = ..., allow_none_charset: bool = ...): ...