Fix deprecation warnings for AST classes
Closed this issue · 0 comments
donkirkby commented
As part of fixing #567, I saw new deprecation warnings about old classes that will be removed in Python 3.14. It's easy to replace instantiations of the old classes with Constant()
, but I don't know how to replace the type checks.
if isinstance(try_body[0], Expr) and isinstance(try_body[0].value, Str):
and
if (isinstance(slice_node, Ellipsis) or
isinstance(slice_node.value, Ellipsis)):