Skip to content

Commit

Permalink
fix test, disable UP006 for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Nov 22, 2024
1 parent 8008cd3 commit e25ddee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ ignore = [

[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D", "S", "E501"]
"tests/test_util.py" = ["D", "S", "E501", "UP006"]
"docs/*.py" = ["B"]
"docs/examples/*.py" = ["D", "B", "E501"]
"src/magicgui/widgets/_image/*.py" = ["D"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_subclass_new_type(self):
new_int = typing.NewType("new_int", int)

assert safe_issubclass(new_int, new_int)
assert safe_issubclass(list[new_int], list[new_int])
assert safe_issubclass(list[new_int], list[new_int])
assert safe_issubclass(list[new_int], typing.List[new_int])
assert safe_issubclass(typing.List[new_int], list[new_int])
assert safe_issubclass(list[new_int], typing.Sequence[new_int])
assert safe_issubclass(list[new_int], list[new_int])

0 comments on commit e25ddee

Please sign in to comment.