Skip to content

Commit 811fa27

Browse files
committed
Mypy: disable attr-defined warning
Mypy warns us when we assign a not defined variable to an object, but that is something that we are warned for from pylint (seach for "pylint: disable=no-member" in test_updater_key_rotations.py and you will find an example where we have to disable it). We don't want to have two linters checking for the same thing as we can end up disabling two warnings that are actually the same on a single line. Signed-off-by: Martin Vrachev <[email protected]>
1 parent a37df2e commit 811fa27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ strict_equality = "True"
8282
disallow_untyped_defs = "True"
8383
disallow_untyped_calls = "True"
8484
show_error_codes = "True"
85+
disable_error_code = ["attr-defined"]
8586
# TODO: remove "exclude" after deleting old test files
8687
exclude=".*_old.py"
8788

0 commit comments

Comments
 (0)