Extract ast helpers

Open
#529 1 comment 3 reactions 1 assignee View on GitHub

@srittau is already working on this.

Since Oct 19, 2025.

Assessment

This issue has not been assessed yet.

Description

type-refactoring

... into a new ast_helpers.py module.

We have a lot of small ast analysis functions in visitor.py, for example all the functions starting with _is_ like _is_name() or _is_Incomplete. I suggest we move them into a separate module to make the visitor.py module a bit clearer.

A continuation of #519.

Dominant language
Python
Stars
84
Forks
26
Avg merge
1d 21h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PyCQA/flake8-pyi

All issues in PyCQA/flake8-pyi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.