Skip to content

Commit

Permalink
fix: older Python versions don't know about new function args syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tadams42 committed Jul 21, 2023
1 parent 013e036 commit a5af9dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def convert(error: Union[int, Exception]) -> Union[List[dict], dict]:


class ExceptionConverter(abc.ABC):
def __init_subclass__(cls, /, **kwargs):
super().__init_subclass__(**kwargs)
def __init_subclass__(cls, *args, **kwargs):
super().__init_subclass__(*args, **kwargs)
ConvertersRegistry.register(cls)

@abc.abstractclassmethod
Expand Down

0 comments on commit a5af9dd

Please sign in to comment.