Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-morel committed Jun 5, 2024
1 parent 9542f6e commit b6655ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyoload/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ class Check:
"""
checks_list = {}

def __init_subclass__(subclass: Any):
def __init_subclass__(cls: Any):
"""
register's subclasses as chexks
"""
if hasattr(cls, 'name'):
name = cls.name
else:
name = cls.__name__
cls.register(name, cls())
Check.register(cls(), name)

@classmethod
def register(
Expand Down

0 comments on commit b6655ca

Please sign in to comment.