1 file changed
+1
-1
+1
-1
@@ -62,7 +62,7 @@ Calling sub
|
|||||||
|
|
||||||
## (b) A Real Decorator
|
## (b) A Real Decorator
|
||||||
|
|
||||||
In [Exercise 6.6](ex6_6.md), you created a callable class `ValidatedFunction` that
|
In [Exercise 6.5](ex6_5.md), you created a callable class `ValidatedFunction` that
|
||||||
enforced type annotations. Rewrite this class as a decorator function called `validated`.
|
enforced type annotations. Rewrite this class as a decorator function called `validated`.
|
||||||
It should allow you to write code like this:
|
It should allow you to write code like this:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user