asteroids/venv/lib/python3.11/site-packages/pygame/rwobject.pyi
Florian Schmitt 2e5df21095 first commit
2024-10-08 15:38:46 +03:00

18 lines
544 B
Python

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: ...