Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions stdlib/ast.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,11 @@ class Slice(_Slice):
) -> Self: ...

@deprecated("Deprecated since Python 3.9. Use ast.Tuple instead.")
class ExtSlice(slice):
class ExtSlice(slice): # type: ignore[deprecated]
def __new__(cls, dims: Iterable[slice] = (), **kwargs: Unpack[_SliceAttributes]) -> Tuple: ... # type: ignore[misc]

@deprecated("Deprecated since Python 3.9. Use the index value directly instead.")
class Index(slice):
class Index(slice): # type: ignore[deprecated]
def __new__(cls, value: expr, **kwargs: Unpack[_SliceAttributes]) -> expr: ... # type: ignore[misc]

class expr_context(AST): ...
Expand Down Expand Up @@ -2016,12 +2016,12 @@ class NodeVisitor:
def visit_TypeAlias(self, node: TypeAlias) -> Any: ...

# visit methods for deprecated nodes
def visit_ExtSlice(self, node: ExtSlice) -> Any: ...
def visit_Index(self, node: Index) -> Any: ...
def visit_Suite(self, node: Suite) -> Any: ...
def visit_AugLoad(self, node: AugLoad) -> Any: ...
def visit_AugStore(self, node: AugStore) -> Any: ...
def visit_Param(self, node: Param) -> Any: ...
def visit_ExtSlice(self, node: ExtSlice) -> Any: ... # type: ignore[deprecated]
def visit_Index(self, node: Index) -> Any: ... # type: ignore[deprecated]
def visit_Suite(self, node: Suite) -> Any: ... # type: ignore[deprecated]
def visit_AugLoad(self, node: AugLoad) -> Any: ... # type: ignore[deprecated]
def visit_AugStore(self, node: AugStore) -> Any: ... # type: ignore[deprecated]
def visit_Param(self, node: Param) -> Any: ... # type: ignore[deprecated]

if sys.version_info < (3, 14):
@deprecated("Replaced by visit_Constant; removed in Python 3.14")
Expand Down