Enforce order of `(complex |) float | int` (or vice versa)

Open
#560 2 comments 0 reactions 0 assignees View on GitHub

@Khabib73 is already working on this.

Since Nov 23, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

The issue names no files or tests. Start by reading the existing rules for type-union ordering and their tests, then clarify which ordering should be enforced: the title allows either direction. Done means the chosen convention is enforced consistently and covered by tests for these unions.

Written by the indexing model from the issue text.

Description

type-feature

Since this will be fairly common going forward.

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.