Skip to content

Commit a669bcf

Browse files
committed
Resolve ruff errors
1 parent 5eebc45 commit a669bcf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

python/tests/test_wrapper_coverage.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from enum import EnumMeta as EnumType
2929

3030

31-
def missing_exports(internal_obj, wrapped_obj) -> None:
31+
def missing_exports(internal_obj, wrapped_obj) -> None: # noqa: C901
3232
"""
3333
Identify if any of the rust exposted structs or functions do not have wrappers.
3434
@@ -46,11 +46,7 @@ def missing_exports(internal_obj, wrapped_obj) -> None:
4646
return
4747

4848
for internal_attr_name in dir(internal_obj):
49-
wrapped_attr_name = (
50-
internal_attr_name[3:]
51-
if internal_attr_name.startswith("Raw")
52-
else internal_attr_name
53-
)
49+
wrapped_attr_name = internal_attr_name.removeprefix("Raw")
5450
assert wrapped_attr_name in dir(wrapped_obj)
5551

5652
internal_attr = getattr(internal_obj, internal_attr_name)

0 commit comments

Comments
 (0)