Skip to content

Commit 7887459

Browse files
committed
all ANN in tests
1 parent acf76d8 commit 7887459

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ ignore = [
192192
"*.pyi" = [
193193
# The following rules are ignored permanently for good reasons
194194
"A002", # https://docs.astral.sh/ruff/rules/builtin-argument-shadowing/
195+
"ANN401", # https://docs.astral.sh/ruff/rules/any-type/
195196
"FIX002", # https://docs.astral.sh/ruff/rules/line-contains-todo/
196197
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
197198
"TD002", # https://docs.astral.sh/ruff/rules/missing-todo-author/
@@ -200,7 +201,7 @@ ignore = [
200201
"A004", # https://docs.astral.sh/ruff/rules/builtin-import-shadowing/
201202
"PYI001", # https://docs.astral.sh/ruff/rules/unprefixed-type-param/
202203
"PYI042", # https://docs.astral.sh/ruff/rules/snake-case-type-alias/
203-
"ERA001", "ANN001", "ANN201", "ANN204", "ANN206", "ANN401", "PLR0402", "PLC0105"
204+
"ERA001", "ANN001", "ANN201", "ANN204", "ANN206", "PLR0402", "PLC0105"
204205
]
205206
"scripts/*" = [
206207
# The following rules are ignored permanently for good reasons
@@ -209,6 +210,7 @@ ignore = [
209210
]
210211
"tests/*" = [
211212
# The following rules are ignored permanently for good reasons
213+
"ANN401", # https://docs.astral.sh/ruff/rules/any-type/
212214
"B905", # https://docs.astral.sh/ruff/rules/zip-without-explicit-strict/
213215
"E731", # https://docs.astral.sh/ruff/rules/lambda-assignment/
214216
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
@@ -221,7 +223,7 @@ ignore = [
221223
"A001", # https://docs.astral.sh/ruff/rules/builtin-variable-shadowing/
222224
"PYI042", # https://docs.astral.sh/ruff/rules/snake-case-type-alias/
223225
"SLF001", # https://docs.astral.sh/ruff/rules/private-member-access/
224-
"ANN201", "ANN204", "ANN206", "ANN401", "ARG", "ERA", "RUF", "SIM", "TRY", "PT", "NPY", "N", "DTZ", "PLR", "TC", "PGH", "S311", "C901"
226+
"ARG", "ERA", "RUF", "SIM", "TRY", "PT", "NPY", "N", "DTZ", "PLR", "TC", "PGH", "S311", "C901"
225227
]
226228
"tests/test_io.py" = [
227229
# The following rules are ignored permanently for good reasons

tests/extension/decimal/array.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from pandas._typing import (
3737
ArrayLike,
3838
AstypeArg,
39-
Dtype,
4039
ScalarIndexer,
4140
SequenceIndexer,
4241
SequenceNotStr,

0 commit comments

Comments
 (0)