stdlib: Apply some simple deprecations (#11044)

This commit is contained in:
Jelle Zijlstra
2023-11-23 00:03:01 -08:00
committed by GitHub
parent 42875bcbf1
commit c2c8d7cf5d
4 changed files with 105 additions and 32 deletions

View File

@@ -64,6 +64,7 @@ from typing_extensions import (
TypeAlias,
TypeGuard,
TypeVarTuple,
deprecated,
final,
)
@@ -938,6 +939,8 @@ class bool(int):
@overload
def __rxor__(self, __value: int) -> int: ...
def __getnewargs__(self) -> tuple[int]: ...
@deprecated("Will throw an error in Python 3.14. Use `not` for logical negation of bools instead.")
def __invert__(self) -> int: ...
@final
class slice: