Skip to content

Commit

Permalink
fix: Decorator keyword arguments input
Browse files Browse the repository at this point in the history
Signed-off-by: Sietze van Buuren <[email protected]>
  • Loading branch information
swvanbuuren committed Aug 18, 2024
1 parent daa29b0 commit fb2123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pqthreads/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Decorator: # pylint: disable=too-few-public-methods
def __init__(self, decorator_class: DecoratorCore):
self.decorator_class = decorator_class

def __call__(self, wrapped, **kwargs):
def __call__(self, wrapped=None, **kwargs):
""" Enables usage with and without decorator keyword arguments """
if wrapped is None:
return functools.partial(self.__call__, **kwargs)
Expand Down

0 comments on commit fb2123e

Please sign in to comment.