Skip to content

ast class deprecations #1976

@greyltc

Description

@greyltc

A few ast module classes being used here were depreciated in python 3.8 and removed from 3.14:

https://github.com/python/cpython/blob/48795b6460e16dff72add0675a7bf8e1f029108e/Doc/library/ast.rst?plain=1#L144-L148

For example, this line fails today on the latest stable python release:

if type(value_node) == ast.Num:

because ast.Num is gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions