Skip to content

Countable

  • Countable()

Validates if the input is countable, in other words, if input has __len__ attribute.

v.countable().validate([])  # true
v.countable().validate(range(10))  # true
v.countable().validate(100)  # false

Categorization

  • Types

Changelog

Version Description
1.0.0 Created

See also: