Intelegentny_Pszczelarz/.venv/Lib/site-packages/pygame/rwobject.pyi

19 lines
544 B
Python
Raw Normal View History

2023-03-18 12:55:22 +01:00
from typing import Any, Optional, overload, Type
from ._common import AnyPath
def encode_string(
obj: Optional[AnyPath],
encoding: Optional[str] = "unicode_escape",
errors: Optional[str] = "backslashreplace",
etype: Optional[Type[Exception]] = UnicodeEncodeError,
) -> bytes: ...
@overload
def encode_file_path(
obj: Optional[AnyPath], etype: Optional[Type[Exception]] = UnicodeEncodeError
) -> bytes: ...
@overload
def encode_file_path(
obj: Any, etype: Optional[Type[Exception]] = UnicodeEncodeError
) -> bytes: ...