Skip to content

Commit 99a1185

Browse files
mbyrnepr2srittau
andcommitted
Use StrOrBytesPath for improved readability/maintainability.
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
1 parent 38c807d commit 99a1185

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

stdlib/wave.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import sys
2-
from _typeshed import ReadableBuffer, Unused
3-
from os import PathLike
2+
from _typeshed import ReadableBuffer, StrOrBytesPath, Unused
43
from typing import IO, Any, BinaryIO, Final, Literal, NamedTuple, NoReturn, TypeAlias, overload
54
from typing_extensions import Self, deprecated
65

76
__all__ = ["open", "Error", "Wave_read", "Wave_write"]
87
if sys.version_info >= (3, 15):
98
__all__ += ["WAVE_FORMAT_PCM", "WAVE_FORMAT_IEEE_FLOAT", "WAVE_FORMAT_EXTENSIBLE"]
109

11-
_File: TypeAlias = str | IO[bytes] | bytes | PathLike[Any]
10+
_File: TypeAlias = StrOrBytesPath | IO[bytes]
1211

1312
class Error(Exception): ...
1413

0 commit comments

Comments
 (0)