Skip to content

Add E243 for whitespace around attribute access#1316

Closed
lin-hongkuan wants to merge 1 commit into
PyCQA:mainfrom
lin-hongkuan:codex/attribute-access-whitespace
Closed

Add E243 for whitespace around attribute access#1316
lin-hongkuan wants to merge 1 commit into
PyCQA:mainfrom
lin-hongkuan:codex/attribute-access-whitespace

Conversation

@lin-hongkuan

Copy link
Copy Markdown

Fixes #553.

Summary

  • add default-ignored E243 for whitespace before or after attribute access dots
  • avoid flagging relative imports and newline-based chained attribute access
  • document E243 alongside the other default-ignored E24 checks

Tests

  • python -m pytest tests/test_data.py -q -k E24
  • python -m pytest tests -q
  • python -m pycodestyle --statistics pycodestyle.py
  • git diff --check
  • verified default configuration ignores E243, while --select=E243 reports the issue examples

@asottile asottile closed this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spaces before attribute access not reported as violation

2 participants