-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Standardize type comments to form # type: (value) (#2097)
#4645
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
Merged
cobaltt7
merged 12 commits into
psf:main
from
ranjodhsingh1729:standardize-type-comments
Oct 18, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a969e00
Standardize type comments to form `# type: (value)` (psf#2097)
ranjodhsingh1729 a347490
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 523e2a6
Merge branch 'main' into standardize-type-comments
ranjodhsingh1729 4233f1e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b7abcd4
Change the missed `NON_BREAKING_SPACE` to `"\N{NO-BREAK SPACE}"` per …
ranjodhsingh1729 fcc7234
Clean up unnecessary strip calls as per review
ranjodhsingh1729 0bf7ca8
Merge branch 'main' into standardize-type-comments
cobaltt7 cb4d8d6
Just triggering CI with something trivial
ranjodhsingh1729 320033f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e225afe
Merge branch 'main' into standardize-type-comments
cobaltt7 0c4e89b
Merge branch 'main' into standardize-type-comments
ranjodhsingh1729 89f6afe
Add the missing newline at the end of the test case
ranjodhsingh1729 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # flags: --preview | ||
| def foo( | ||
| a, #type:int | ||
| b, #type: str | ||
| c, # type: List[int] | ||
| d, # type: Dict[int, str] | ||
| e, # type: ignore | ||
| f, # type : ignore | ||
| g, # type : ignore | ||
| ): | ||
| pass | ||
|
|
||
| # output | ||
| def foo( | ||
| a, # type: int | ||
| b, # type: str | ||
| c, # type: List[int] | ||
| d, # type: Dict[int, str] | ||
| e, # type: ignore | ||
| f, # type : ignore | ||
| g, # type : ignore | ||
| ): | ||
| pass |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.