Skip to content

Commit

Permalink
Enforce ruff/bugbear rule B028
Browse files Browse the repository at this point in the history
B028 No explicit `stacklevel` keyword argument found
  • Loading branch information
DimitriPapadopoulos committed Jun 2, 2024
1 parent 5ff2163 commit 2ce1cf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/highdicom/seg/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,8 @@ def __init__(
"Setting workers != 0 or passing an instance of "
"concurrent.futures.Executor when using a non-encapsulated "
"transfer syntax has no effect.",
UserWarning
UserWarning,
stacklevel=2,
)
using_multiprocessing = False

Expand Down
3 changes: 2 additions & 1 deletion src/highdicom/valuerep.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def check_person_name(person_name: Union[str, PersonName]) -> None:
'to construct the person name correctly. If a single-component '
'name is really intended, add a trailing caret character to '
'disambiguate the name.',
UserWarning
UserWarning,
stacklevel=2,
)


Expand Down

0 comments on commit 2ce1cf0

Please sign in to comment.