Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
40 commits Select commitHold shift + click to select a range
f04f4e3 Add basic support for PEP 702 (@deprecated).
tyralla973bf2d [pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]a88f4b4 use `type: ignore[deprecated]` when importing `abstractproperty`
tyralla91612c9 Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyrallafaa4911 accept deprecated.args >= 1
tyralla101e9b8 ": " instead of " - "
tyrallae3dfacb only consider `warnings.deprecated` and `typing_extensions.deprecated…
tyrallacbf7574 note instead of error
tyralla9a947a5 remove walrusses
tyralla6d92318 document the new option
tyrallaafa0336 motivate the semantic analyzer
tyralla7bfb534 `report-deprecated-as-error` instead of `warn-deprecated` and three n…
tyralla1042c65 fix a typo in error_code_list2.rst
tyralla978b1a2 additional note when PEP 702 is unsatisfied with the order of `@depre…
tyrallab0ced07 mention the affected overload
tyrallaa07fc64 Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyrallab527250 [pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]f636024 add an annotation required by mypyc
tyralla63a725e Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
tyralla966ac8b refactor: create the whole deprecation warning in one place
tyralla6a7dfe0 refactor: get rid of the `memberaccess` parameter
tyralla1a40953 refactor: merge `check_deprecated_function` and `check_deprecated_cla…
tyralla1372e66 refactor: convert `get_deprecation_warning` to `create_deprecation_wa…
tyralla286371f prefix the warnings with `class ...`, `function ...`, or `overload ..…
tyralla6f54dab [pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]8c0260e Consider `CallableType.deprecated` in `__hash__`, `__eq__`, `serializ…
tyrallacf2dcaf Add a few fine-grained tests (of which `testAddFunctionDeprecationInd…
tyralla6a93d6a Merge branch 'feature/support_deprecated' of https://github.com/tyral…
tyrallaa6d0e59 Move the complete creation process of warning notes from `checker.py`…
tyralla6163787 [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…
tyralla250e171 [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…
tyralla31c4296 `typ: SymbolNode` -> `node: SymbolNode`
tyralla90fb06d `type_` -> typ
tyrallabeed6a5 [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.…
tyralla988bf5f Merge branch 'master' into feature/support_deprecated
tyralla80ddc68 Add `testDeprecateFunctionAlreadyDecorated`.
tyrallad104f26 Add `deprecated` to the `Func` snapshot and adjust test `testDeprecat…
tyrallaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Consider
CallableType.deprecated in__hash__,__eq__, `serializ……e`, and `deserialize`.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit8c0260e8b4f529fa9c84cf648c815cf8bcc20e16
There are no files selected for viewing
4 changes: 4 additions & 0 deletionsmypy/types.py
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.