Repository navigation
Commit 86a2eba
authored
Summary
--
This PR removes `typing_extensions.no_type_check_decorator` from the
list of moved members in UP035. As the
[docs](https://docs.python.org/3/library/typing.html#typing.no_type_check_decorator)
indicate, this decorator has been deprecated since 3.13 and is removed
in 3.15, so the rule should just leave it alone.
The change is not version-gated because it seemed weird to me to
recommend making this change with a target version of 3.12, for example,
only for the user to have to change it back when they eventually bump
their Python version.
I initially thought that `typing_extensions` would continue to backport
this, but it appears that they removed it as well:
python/typing_extensions#723. I don't think that
actually changes how we should handle it, though.
Test Plan
--
Added a couple of tests showing no diagnostic
1 parent 609e184 commit 86a2eba
3 files changed
Lines changed: 23 additions & 1 deletion
File tree
- crates/ruff_linter
- resources/test/fixtures/pyupgrade
- src/rules/pyupgrade
- rules
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1133 | 1136 | | |
1134 | 1137 | | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1138 | 1157 | | |
0 commit comments