MCPcopy Index your code
hub / github.com/dabeaz-course/python-mastery / isvalidator

Function isvalidator

Solutions/7_4/validate.py:59–60  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

57from functools import wraps
58
59def isvalidator(item):
60 return isinstance(item, type) and issubclass(item, Validator)
61
62def validated(func):
63 sig = signature(func)

Callers 1

validatedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected