re-indent
This commit is contained in:
parent
e222046269
commit
70dd069f57
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ def typechecked(func):
|
||||||
return_ = wrapped_func(*args, **kvargs)
|
return_ = wrapped_func(*args, **kvargs)
|
||||||
class_ = wrapped_func.__annotations__["return"]
|
class_ = wrapped_func.__annotations__["return"]
|
||||||
if not isinstance(return_, class_):
|
if not isinstance(return_, class_):
|
||||||
raise TypeError("return value is not "
|
raise TypeError("return value is not "
|
||||||
"an instance of {}".format(class_))
|
"an instance of {}".format(class_))
|
||||||
return return_
|
return return_
|
||||||
|
|
||||||
typecheck.__doc__ = wrapped_func.__doc__
|
typecheck.__doc__ = wrapped_func.__doc__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue