mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 17:54:01 +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:
+4
-2
@@ -1097,15 +1097,17 @@ class Constant(expr):
|
||||
kind: str | None
|
||||
if sys.version_info < (3, 14):
|
||||
# Aliases for value, for backwards compatibility
|
||||
@deprecated("Will be removed in Python 3.14; use value instead")
|
||||
@property
|
||||
@deprecated("Will be removed in Python 3.14. Use `value` instead.")
|
||||
def n(self) -> _ConstantValue: ...
|
||||
@n.setter
|
||||
@deprecated("Will be removed in Python 3.14. Use `value` instead.")
|
||||
def n(self, value: _ConstantValue) -> None: ...
|
||||
@deprecated("Will be removed in Python 3.14; use value instead")
|
||||
@property
|
||||
@deprecated("Will be removed in Python 3.14. Use `value` instead.")
|
||||
def s(self) -> _ConstantValue: ...
|
||||
@s.setter
|
||||
@deprecated("Will be removed in Python 3.14. Use `value` instead.")
|
||||
def s(self, value: _ConstantValue) -> None: ...
|
||||
|
||||
def __init__(self, value: _ConstantValue, kind: str | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user