Skip to content

Commit

Permalink
Add name of class to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eanorige committed Feb 10, 2024
1 parent 4508ca3 commit c6c7833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysv/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def check_class_ctor(cls: type):
# make sure that it doesn't have any extra parameters
signature = inspect.signature(ctor)
assert len(signature.parameters) == 1, """Class constructor has more arguments than simple
self is required to have @sv decorator"""
self{0} is required to have @sv decorator""".format(cls.__name__)
# generate a wrapper

# need to be careful about the imports. seems all the functions have the same scope, we pick the one
Expand Down

0 comments on commit c6c7833

Please sign in to comment.