A validator that raises a `attrs.exceptions.NotCallableError` if the initializer is called with a value for this particular attribute that is not callable. .. versionadded:: 19.1.0 Raises: attrs.exceptions.NotCallableError: With a human readable error messa
()
| 314 | |
| 315 | |
| 316 | def is_callable(): |
| 317 | """ |
| 318 | A validator that raises a `attrs.exceptions.NotCallableError` if the |
| 319 | initializer is called with a value for this particular attribute that is |
| 320 | not callable. |
| 321 | |
| 322 | .. versionadded:: 19.1.0 |
| 323 | |
| 324 | Raises: |
| 325 | attrs.exceptions.NotCallableError: |
| 326 | With a human readable error message containing the attribute |
| 327 | (`attrs.Attribute`) name, and the value it got. |
| 328 | """ |
| 329 | return _IsCallableValidator() |
| 330 | |
| 331 | |
| 332 | @attrs(repr=False, slots=True, unsafe_hash=True) |