-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow integers in TypeAlias names. #8488
Conversation
Added checks and updated documentation to reflect the rule behavior: Good2Name, GoodName2, _1BadName.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a news fragment as well? Rest LGTM! Thanks for picking this up!
| | ``typevars``. Note that ``TopName`` is allowed but | | | ||
| | ``TTopName`` isn't. | | | ||
| ``typealias`` | ``GoodName``, ``_GoodName``, ``IPAddressType``, | ``BadNameT``, ``badName``, ``TBadName``, ``TypeBadName`` | | ||
| | 'GoodName2 and other PascalCase variants that don't | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | 'GoodName2 and other PascalCase variants that don't | | | |
| | ``GoodName2`` and other PascalCase variants that don't | | |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8488 +/- ##
=======================================
Coverage 95.92% 95.92%
=======================================
Files 174 174
Lines 18361 18361
=======================================
Hits 17612 17612
Misses 749 749
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The documentation check seem to have failed for an unrelated issue:
|
@DanielNoord I synced the branch with the latest main. I hoped this will get the last check to pass. |
This comment has been minimized.
This comment has been minimized.
@@ -0,0 +1,5 @@ | |||
``invalid-name`` now allows for integers in ``typealias`` names: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``invalid-name`` now allows for integers in ``typealias`` names: | |
``invalid-name`` now allows for integers in ``typealias`` names: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't make commits to the branch so you'll need to do this yourself
(cherry picked from commit 43eb61e)
π€ Effect of this PR on checked open source code: π€ Effect on pandas:
This comment was generated for commit fa53728 |
Type of Changes
Description
Updated the pattern to allow integers and updated the documentation to reflect the rule behavior: Good2Name, GoodName2, _1BadName.
towncrier create 8485.false_positive
Closes #8485.