Skip to content

Commit

Permalink
Add name of class to error message (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
eanorige authored Feb 11, 2024
1 parent 4508ca3 commit 451b1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysv/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def check_class_ctor(cls: type):
# it's a normal init ctor
# 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"""
assert len(signature.parameters) == 1, """Class {0} constructor with more arguments than simple
self 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 451b1c8

Please sign in to comment.