seandstewart / typical

Typical: Fast, simple, & correct data-validation using Python 3 typing.
https://python-typical.org
MIT License
183 stars 9 forks source link

add parameter to typic.klass #177

Closed xbanke closed 2 years ago

xbanke commented 2 years ago

Description

typic/klass.py:233: UserWarning: Keyword `always` will default to `False` in a future version. You should update your code to either explicitly declare `always=True` or update your code to not assume values will be coerced when set.
  return make_typedclass(

Parameter always comes from _resolve_class, but there is no way to set always.