Skip to content

Commit 8b53be3

Browse files
mbyrnepr2srittau
andauthored
Update stdlib/wave.pyi
Co-authored-by: Sebastian Rittau <sebastian.rittau@zfutura.de>
1 parent 99a1185 commit 8b53be3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

stdlib/wave.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ __all__ = ["open", "Error", "Wave_read", "Wave_write"]
77
if sys.version_info >= (3, 15):
88
__all__ += ["WAVE_FORMAT_PCM", "WAVE_FORMAT_IEEE_FLOAT", "WAVE_FORMAT_EXTENSIBLE"]
99

10-
_File: TypeAlias = StrOrBytesPath | IO[bytes]
10+
if sys.version_info >= (3, 15):
11+
_File: TypeAlias = StrOrBytesPath | IO[bytes]
12+
else:
13+
_File: TypeAlias = str | IO[bytes]
1114

1215
class Error(Exception): ...
1316

0 commit comments

Comments
 (0)