Function field

Synopsis

def field(type_pattern=typing.Any, tests=None)

Description

Returns an InterfaceField

Mentioned in

Source

Lines 10-14 in anyfig/fields.py.

def field(type_pattern=typing.Any, tests=None):
  ''' Returns an InterfaceField '''
  return InterfaceField(type_pattern, tests)






Add Discussion as Guest

Log in