File: _types.py

package info (click to toggle)
python-w3lib 2.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 396 kB
  • sloc: python: 3,141; makefile: 133
file content (7 lines) | stat: -rw-r--r-- 228 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
from __future__ import annotations

from typing import Union

# the base class UnicodeError doesn't have attributes like start / end
AnyUnicodeError = Union[UnicodeEncodeError, UnicodeDecodeError]
StrOrBytes = Union[str, bytes]