Files
odoo-stubs/odoo-stubs/tools/pycompat.pyi
Trinh Anh Ngoc a6ff3495c9 isort + black
2023-05-18 21:37:00 +07:00

32 lines
619 B
Python

from collections import namedtuple
from typing import Any, Optional
PY2: Any
_Writer = namedtuple("_Writer", "writerow writerows")
unichr = unichr
text_type = unicode
string_types: Any
def to_native(source, encoding: str = ..., falsy_empty: bool = ...): ...
integer_types: Any
def implements_to_string(cls): ...
def implements_iterator(cls): ...
def csv_reader(stream, **params) -> None: ...
def csv_writer(stream, **params): ...
unichr = chr
text_type = str
imap = map
izip = zip
ifilter = filter
def reraise(tp, value, tb: Optional[Any] = ...) -> None: ...
_reader: Any
_writer: Any
def to_text(source): ...