Final exam version
This commit is contained in:
18
venv/lib/python3.12/site-packages/pygame/rwobject.pyi
Normal file
18
venv/lib/python3.12/site-packages/pygame/rwobject.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user