Search code examples
How to use python descriptors with default_factory in dataclass...


pythonpython-dataclasses

Read More
Initializing a pydantic dataclass from json...


pythonpython-dataclassespydantic

Read More
Using a programmatically generated type in type hints...


pythonpython-typingpython-dataclasses

Read More
Inheritance with dataclasses...


pythoninheritanceabstractionpython-dataclasses

Read More
How to make an easily instantiable derivative attribute-only protocol class?...


pythonpython-typingpython-dataclasses

Read More
dataclasses: how to ignore None values using asdict()?...


pythonpython-dataclasses

Read More
Issue regarding overlap of memory allocation for separate dataclasses...


pythonpointersmemoryctypespython-dataclasses

Read More
Avoid explicit `default` keyword in Python's dataclass field...


pythonfieldpython-dataclasses

Read More
Easiest way to copy all fields from one dataclass instance to another?...


pythonpython-dataclasses

Read More
Python frozen dataclass, allow changing of attribute via method...


pythonpython-dataclasses

Read More
Call the generated __init__ from custom constructor in dataclass for defaults...


pythonpython-dataclasses

Read More
Python @dataclasses(slots=True) breaks super()...


pythoninheritancepython-dataclasses

Read More
How to make my dataclass compatible with ctypes and not lose the “dunder“ methods?...


pythonctypespython-dataclasses

Read More
Counter-intuitive results when mixing dataclass and enum...


pythonenumspython-dataclasses

Read More
Make the Python json encoder support Python's new dataclasses...


pythonpython-dataclasses

Read More
Force type conversion in python dataclass __init__ method...


pythonpython-dataclasses

Read More
python dataclasses with optional attributes...


pythonpython-dataclasses

Read More
Data Classes vs typing.NamedTuple primary use cases...


pythonnamedtuplepeppython-3.7python-dataclasses

Read More
How can I make a python dataclass hashable?...


pythonpython-3.xhashpython-dataclasses

Read More
When is the method __post_init__ not called?...


pythonoopinheritanceoverridingpython-dataclasses

Read More
Access container class from contained class with python dataclasses...


pythonpython-typingmypypython-dataclasses

Read More
How to apply default value to Python dataclass field when None was passed?...


pythonpython-3.xdefault-valuepython-dataclasses

Read More
How does one ignore extra arguments passed to a dataclass?...


pythonpython-3.xpython-dataclasses

Read More
Type hints in namedtuple...


pythonpython-typingpython-dataclassesnamedtuple

Read More
Abstract dataclass without abstract methods in Python: prohibit instantiation...


pythonpython-3.xoopabcpython-dataclasses

Read More
Create recursive dataclass with self-referential type hints...


pythonpython-typingpython-dataclassesrecursive-datastructures

Read More
Reading C struct dumped into a file into Python Dataclass...


pythoncbytepython-dataclasses

Read More
What is the magic behind 'dataclass' decorator type-hint of dataclasses module?...


pythonpython-typingpython-dataclasses

Read More
Is there a way to use a dataclass, with fields with defaults, with __slots__...


pythonpython-dataclasses

Read More
How to statically enforce frozen data classes in Python?...


pythonmypypython-typingpython-dataclasses

Read More
BackNext