Skip to content

Fix int literal#3399

Merged
sobolevn merged 20 commits intowemake-services:masterfrom
LordGvozd:fix-int-literal
May 3, 2025
Merged

Fix int literal#3399
sobolevn merged 20 commits intowemake-services:masterfrom
LordGvozd:fix-int-literal

Conversation

@LordGvozd
Copy link
Copy Markdown
Contributor

Fixes #3397

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e9103c2) to head (1505aa7).
⚠️ Report is 83 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #3399   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          362       362           
  Lines        11905     11921   +16     
  Branches       814       815    +1     
=========================================
+ Hits         11905     11921   +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Please, also add a changelog entry

Comment thread wemake_python_styleguide/visitors/ast/builtins.py Outdated
Copy link
Copy Markdown
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread wemake_python_styleguide/visitors/ast/builtins.py Outdated
or is_non_magic
or self._check_is_number_in_typing_literal(parent)
or check_is_node_in_specific_annotation(
parent, 'Literal', {'typing', 'typing_extensions'}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, move {'typing', 'typing_extensions'} to class level and make it a frozenset

@sobolevn sobolevn merged commit a1cf6a5 into wemake-services:master May 3, 2025
9 checks passed
@sobolevn
Copy link
Copy Markdown
Member

sobolevn commented May 3, 2025

Thank you!

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.

WPS432 should ignore literal types

2 participants