Skip to content

Commit

Permalink
added explicit stacklevel to make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Sep 16, 2023
1 parent 1021d1f commit 0b3940c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portalocker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def __init__(
'`BoundedSemaphore` without an explicit `name` '
'argument is deprecated, use NamedBoundedSemaphore',
DeprecationWarning,
stacklevel=1,
)

def get_filenames(self) -> typing.Sequence[pathlib.Path]:
Expand Down

0 comments on commit 0b3940c

Please sign in to comment.