mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[stdlib] Copy-edit deprecation messages (#14614)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
+22
-10
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, Unused
|
||||
from typing import IO, Any, BinaryIO, Final, Literal, NamedTuple, NoReturn, overload
|
||||
from typing_extensions import Self, TypeAlias, deprecated
|
||||
@@ -34,10 +35,15 @@ class Wave_read:
|
||||
def getcomptype(self) -> str: ...
|
||||
def getcompname(self) -> str: ...
|
||||
def getparams(self) -> _wave_params: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def getmarkers(self) -> None: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def getmarkers(self) -> None: ...
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
else:
|
||||
def getmarkers(self) -> None: ...
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
|
||||
def setpos(self, pos: int) -> None: ...
|
||||
def readframes(self, nframes: int) -> bytes: ...
|
||||
|
||||
@@ -59,12 +65,18 @@ class Wave_write:
|
||||
def getcompname(self) -> str: ...
|
||||
def setparams(self, params: _wave_params | tuple[int, int, int, int, str, str]) -> None: ...
|
||||
def getparams(self) -> _wave_params: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
|
||||
def getmarkers(self) -> None: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
@deprecated("Deprecated since Python 3.13; will be removed in Python 3.15.")
|
||||
def getmarkers(self) -> None: ...
|
||||
else:
|
||||
def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...
|
||||
def getmark(self, id: Any) -> NoReturn: ...
|
||||
def getmarkers(self) -> None: ...
|
||||
|
||||
def tell(self) -> int: ...
|
||||
def writeframesraw(self, data: ReadableBuffer) -> None: ...
|
||||
def writeframes(self, data: ReadableBuffer) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user