-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add basic support for PEP 702 (@deprecated). #17476
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
ilevkivskyi
merged 40 commits into
python:master
from
tyralla:feature/support_deprecated
Oct 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
f04f4e3
Add basic support for PEP 702 (@deprecated).
tyralla 973bf2d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a88f4b4
use `type: ignore[deprecated]` when importing `abstractproperty`
tyralla 91612c9
Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyralla faa4911
accept deprecated.args >= 1
tyralla 101e9b8
": " instead of " - "
tyralla e3dfacb
only consider `warnings.deprecated` and `typing_extensions.deprecated…
tyralla cbf7574
note instead of error
tyralla 9a947a5
remove walrusses
tyralla 6d92318
document the new option
tyralla afa0336
motivate the semantic analyzer
tyralla 7bfb534
`report-deprecated-as-error` instead of `warn-deprecated` and three n…
tyralla 1042c65
fix a typo in error_code_list2.rst
tyralla 978b1a2
additional note when PEP 702 is unsatisfied with the order of `@depre…
tyralla b0ced07
mention the affected overload
tyralla a07fc64
Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyralla b527250
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f636024
add an annotation required by mypyc
tyralla 63a725e
Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyralla 966ac8b
refactor: create the whole deprecation warning in one place
tyralla 6a7dfe0
refactor: get rid of the `memberaccess` parameter
tyralla 1a40953
refactor: merge `check_deprecated_function` and `check_deprecated_cla…
tyralla 1372e66
refactor: convert `get_deprecation_warning` to `create_deprecation_wa…
tyralla 286371f
prefix the warnings with `class ...`, `function ...`, or `overload ..…
tyralla 6f54dab
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8c0260e
Consider `CallableType.deprecated` in `__hash__`, `__eq__`, `serializ…
tyralla cf2dcaf
Add a few fine-grained tests (of which `testAddFunctionDeprecationInd…
tyralla 6a93d6a
Merge branch 'feature/support_deprecated' of https://github.com/tyral…
tyralla a6d0e59
Move the complete creation process of warning notes from `checker.py`…
tyralla 6163787
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 49ee7a8
Move the `deprecation` attribute from the nodes `CallableType` and `O…
tyralla 250e171
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 09a53d5
Modify function`snapshot_symbol_table` by removing the "CrossRef" sp…
tyralla 31c4296
`typ: SymbolNode` -> `node: SymbolNode`
tyralla 90fb06d
`type_` -> typ
tyralla beed6a5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8eb2e77
Revert commit 09a53d5b (regarding `astdiff.py` but not `fine-grained.…
tyralla 988bf5f
Merge branch 'master' into feature/support_deprecated
tyralla 80ddc68
Add `testDeprecateFunctionAlreadyDecorated`.
tyralla d104f26
Add `deprecated` to the `Func` snapshot and adjust test `testDeprecat…
tyralla 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
accept deprecated.args >= 1
- Loading branch information
commit faa49111467cd37620d8b0cecf276dadf270cfd7
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
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.