add base signal class

This commit is contained in:
collerek
2020-12-06 10:28:48 +01:00
parent 9838547c4f
commit 2bbfd05017
8 changed files with 112 additions and 11 deletions

View File

@ -13,7 +13,7 @@ def property_field(func: Callable) -> Union[property, Callable]:
if len(arguments) > 1 or arguments[0] != "self":
raise ModelDefinitionError(
"property_field decorator can be used "
"only on class methods with no arguments"
"only on methods with no arguments"
)
func.__dict__["__property_field__"] = True
return func