MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / is_callable

Function is_callable

src/licensedcode/_vendor/attr/validators.py:358–370  ·  view source on GitHub ↗

A validator that raises a `attr.exceptions.NotCallableError` if the initializer is called with a value for this particular attribute that is not callable. .. versionadded:: 19.1.0 :raises `attr.exceptions.NotCallableError`: With a human readable error message containin

()

Source from the content-addressed store, hash-verified

356
357
358def is_callable():
359 """
360 A validator that raises a `attr.exceptions.NotCallableError` if the
361 initializer is called with a value for this particular attribute
362 that is not callable.
363
364 .. versionadded:: 19.1.0
365
366 :raises `attr.exceptions.NotCallableError`: With a human readable error
367 message containing the attribute (`attrs.Attribute`) name,
368 and the value it got.
369 """
370 return _IsCallableValidator()
371
372
373@attrs(repr=False, slots=True, hash=True)

Callers 2

_DeepIterableClass · 0.85
_DeepMappingClass · 0.85

Calls 1

Tested by

no test coverage detected