StackOverflow Questions for Tag: python-dataclasses

Akin Wilson
Akin Wilson

Reputation: 31

How to 'pythonically' merging python data classes with unique attribute names

Score: 0

Views: 75

Answers: 2

Read More
Akin Wilson
Akin Wilson

Reputation: 31

How to use dataclasses to initiate the argument parser of a python script?

Score: -1

Views: 29

Answers: 0

Read More
Adam Boinet
Adam Boinet

Reputation: 531

Counter-intuitive results when mixing dataclass and enum

Score: 2

Views: 529

Answers: 2

Read More
sji gshan
sji gshan

Reputation: 311

How to parse a JSON object into a python dataclass without third party library?

Score: 18

Views: 30386

Answers: 4

Read More
Mysterio
Mysterio

Reputation: 3427

Class inheritance in Python 3.7 dataclasses

Score: 329

Views: 230652

Answers: 17

Read More
miracle2k
miracle2k

Reputation: 31987

Make the Python json encoder support Python's new dataclasses

Score: 206

Views: 217695

Answers: 14

Read More
user3478180
user3478180

Reputation: 109

Why does enum class decorated with @dataclass cause == operator to misbehave?

Score: -3

Views: 34

Answers: 0

Read More
kerzane
kerzane

Reputation: 465

Python dataclasses: omit field from asdict

Score: 16

Views: 9077

Answers: 3

Read More
Simon1
Simon1

Reputation: 718

Converting YAML file to dataclass with nested dataclasses and optional keyword arguments

Score: 3

Views: 1968

Answers: 4

Read More
johnson
johnson

Reputation: 4405

Force type conversion in python dataclass __init__ method

Score: 72

Views: 41189

Answers: 11

Read More
Back2Basics
Back2Basics

Reputation: 7796

python dataclasses with optional attributes

Score: 62

Views: 92595

Answers: 4

Read More
CoderGuyy
CoderGuyy

Reputation: 147

Initializing python dataclass object without passing instance variables or default values

Score: 6

Views: 9536

Answers: 2

Read More
Cleb
Cleb

Reputation: 25997

How to make attribute in dataclass read-only?

Score: 23

Views: 13572

Answers: 8

Read More
Oleh Rybalchenko
Oleh Rybalchenko

Reputation: 8009

Data Classes vs typing.NamedTuple primary use cases

Score: 288

Views: 116359

Answers: 8

Read More
Matthias Pospiech
Matthias Pospiech

Reputation: 3494

python dataclass is constructed with previous content?

Score: -1

Views: 33

Answers: 0

Read More
Johz
Johz

Reputation: 200

Can I create an Enum of a dataclass instances?

Score: 10

Views: 4863

Answers: 4

Read More
Nils
Nils

Reputation: 173

Generate dataclass for typing programmatically

Score: 2

Views: 65

Answers: 1

Read More
robertspierre
robertspierre

Reputation: 4323

Define __dict__ in slotted dataclass

Score: 0

Views: 31

Answers: 1

Read More
Brian C.
Brian C.

Reputation: 7946

How can I make a python dataclass hashable?

Score: 178

Views: 98655

Answers: 4

Read More
user3414663
user3414663

Reputation: 583

How to make a Python Dataclass mixin?

Score: 0

Views: 51

Answers: 1

Read More
PreviousPage 1Next