Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-attrs

How to mock an attr.ib validator

python mocking python-attrs

How to solve "unexpected keyword argument" with python-attrs construct, so that mypy is happy?

python-attrs: validator in child class

python python-attrs

Custom validator in python-attrs with extra parameters

How to get @property methods in asdict?

python python-attrs

Python attrs - positional attribute in super class while optional in sub class

python python-attrs

Using attrs to turn JSONs into Python classes

python json python-attrs

Pycharm typehint on subclass using attrs

pycharm python-attrs

How to specify that an attribute must be a list of (say) integers, not just a list?

How to achieve the reverse of "attr.asdict(MyObject)" using Python module 'attrs'

Perfect forwarding - in Python

python python-attrs

When and why should I use attr.Factory?

Setting default/empty attributes for user classes in __init__

How do I avoid the "self.x = x; self.y = y; self.z = z" pattern in __init__?

Add type hints for init argument in attrs class

python python-attrs