2 from typing import Any, Text
4 if sys.version_info >= (3,):
5 from io import BytesIO as BytesIO, StringIO as StringIO
7 NativeStringIO = StringIO
10 from StringIO import StringIO as StringIO
12 BytesIO = cStringIO.StringIO
13 NativeStringIO = BytesIO
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): ...
37 def make_literal_wrapper(reference): ...
38 def normalize_string_tuple(tup): ...
39 def try_coerce_native(s): ...
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 = ...): ...
53 def to_unicode(x, charset: Text = ..., errors: Text = ..., allow_none_charset: bool = ...): ...