Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Refactoring in preparation for @Pure annotations #9

@lukarade

Description

@lukarade

Is your feature request related to a problem?

Right now, the visit_ast method handles both, traversing the ast-tree and handling its knots. This is inefficient and confusing in some parts.

Desired solution

The method visit_ast should be reworked: traversing and handling the ast-tree should be separated.
Therefor compare: https://github.com/lars-reimann/api-editor/blob/main/package-parser/package_parser/utils/_ASTWalker.py

  • mark all relevant function (those who do not just handle traversing)
  • examine all build in functions
  • check all Astroid knots for impurity
  • TBC.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

cleanup 🧹Refactorings and other tasks that improve the codepurityInferring the purity of functions

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions