PyCQA / PyCQA/pycodestyle

E225: Missing on "z = x**y"

Open
#718 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.2k
Forks
754
PR merge metrics
No merged PRs in 30d

Description

Hi, if there are no whitespaces around ** no error is thrown (expected E225). x **y or x** y with one whitespace is throwing E225 as expected. Version is 2.3.1
Tobias

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.

Research direction

No file, test, or entry point is named. Reproduce E225 with z = x**y, x **y, and x** y, then locate the E225 checker and add coverage for the no-whitespace case; done means the first example reports E225 while the existing one-sided-whitespace cases remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.