mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 19:26:45 +08:00
[stdlib] Deprecate old functions (#14553)
* [stdlib] Deprecate many functions * Fix typo * Imporove message for asyncio/trsock * Apply suggestions from code review Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Add Python before version * [pre-commit.ci] auto fixes from pre-commit.com hooks * Wrap comment lines * fix the rest --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Waygood
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent
91ba0da4aa
commit
fb0940e6c1
+5
-1
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import TypeAlias, deprecated
|
||||
|
||||
# Many functions in binascii accept buffer objects
|
||||
# or ASCII-only strings.
|
||||
@@ -20,9 +20,13 @@ def a2b_qp(data: _AsciiBuffer, header: bool = False) -> bytes: ...
|
||||
def b2a_qp(data: ReadableBuffer, quotetabs: bool = False, istext: bool = True, header: bool = False) -> bytes: ...
|
||||
|
||||
if sys.version_info < (3, 11):
|
||||
@deprecated("Deprecated since Python 3.9; removed in Python 3.11.")
|
||||
def a2b_hqx(data: _AsciiBuffer, /) -> bytes: ...
|
||||
@deprecated("Deprecated since Python 3.9; removed in Python 3.11.")
|
||||
def rledecode_hqx(data: ReadableBuffer, /) -> bytes: ...
|
||||
@deprecated("Deprecated since Python 3.9; removed in Python 3.11.")
|
||||
def rlecode_hqx(data: ReadableBuffer, /) -> bytes: ...
|
||||
@deprecated("Deprecated since Python 3.9; removed in Python 3.11.")
|
||||
def b2a_hqx(data: ReadableBuffer, /) -> bytes: ...
|
||||
|
||||
def crc_hqx(data: ReadableBuffer, crc: int, /) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user