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
()
| 356 | |
| 357 | |
| 358 | def 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) |
no test coverage detected