MCPcopy
hub / github.com/benoitc/gunicorn / validate_class

Function validate_class

gunicorn/config.py:466–471  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

464
465
466def validate_class(val):
467 if inspect.isfunction(val) or inspect.ismethod(val):
468 val = val()
469 if inspect.isclass(val):
470 return val
471 return validate_string(val)
472
473
474def validate_callable(arity):

Callers

nothing calls this directly

Calls 1

validate_stringFunction · 0.85

Tested by

no test coverage detected