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

Function isvalidator

Solutions/7_6/validate.py:65–66  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

63from functools import wraps
64
65def isvalidator(item):
66 return isinstance(item, type) and issubclass(item, Validator)
67
68def validated(func):
69 sig = signature(func)

Callers 1

validatedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected