Skip to content

bagof.hints.strings

String-like objects.

Attributes

BytesLike module-attribute

BytesLike = Union[bytes, bytearray, memoryview]

Different bytes representations: (bytes | bytearray | memoryview).

StringLike module-attribute

StringLike = Union[str, BytesLike]

Strings or bytes: (str | bytes | bytearray | memoryview).

PathLike module-attribute

PathLike = Union[str, 'os.PathLike[Any]']

Strings or paths: (str | os.PathLike[Any]).