Skip to content

Commit 9e1696e

Browse files
Apply ruff rule RUF100
Unused `noqa` directive
1 parent 4bd60d5 commit 9e1696e

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

array_api_compat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
"""
2020
__version__ = '1.15.0.dev0'
2121

22-
from .common import * # noqa: F401, F403
22+
from .common import * # noqa: F403

array_api_compat/numpy/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: PLC0414
21
from typing import Final
32

43
from .._internal import clone_module

tests/test_isdtype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def isdtype_(dtype_, kind):
6161
res = dtype_categories[kind](dtype_)
6262
else:
6363
res = dtype_ == kind
64-
assert type(res) is bool # noqa: E721
64+
assert type(res) is bool
6565
return res
6666

6767
@pytest.mark.parametrize("library", wrapped_libraries)

0 commit comments

Comments
 (0)