PyCQA / PyCQA/flake8-pyi

Extract ast helpers

Open
#529 0 comments 2 reactions 1 assignee View on GitHub

@srittau is already working on this.

Since Oct 19, 2025.

type-refactoring
Dominant language
Python
Stars
83
Forks
22
PR merge metrics
No merged PRs in 30d

Description

... 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.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.