skip to navigation
skip to content

anticipate 0.7.3

A type checking and adapting library

Latest Version: 0.8.0

Expect the unexpected, but get what you want.

def get_int():
  return '1'

assert get_int() == 1

def get_str():
  return 22

assert get_str() == '22'

def get_strs(*args):
  return args

assert list(get_strs(1, 2, 3)) == ['1', '2', '3']

Works much better with your own objects or with SpringField

File Type Py Version Uploaded on Size
anticipate-0.7.3.tar.gz (md5) Source 2014-04-21 10KB