#dataclass
@dataclass is good stuff
November 9, 2024 at 12:08 AM
like dude. what the hell is a dataclass
July 10, 2026 at 6:19 PM
Python Tip #241 (of 365):

Let dataclasses write your dunder methods. 🧵

The dataclass decorator writes __init__, __repr__, and __eq__ for you:

from dataclasses import dataclass

@dataclass
class Comment:
text: str
line: int

#Python #DailyPythonTip
August 29, 2026 at 6:04 PM
pydantic/dataclass/attrs/ty and uv. non problem in 2025 imo

but it’s still slow
December 18, 2025 at 5:50 PM
from typing import Any
from dataclasses import dataclass

@ dataclass
class Person:
gender:Any = None
April 20, 2025 at 7:31 PM
AIエンジニアリング入門:Pythonによる開発の基礎(uv, Ruff, dataclass, Pyright, Git hooks)
https://zenn.dev/dalab/articles/61f06f6b516f4e
AIエンジニアリング入門:Pythonによる開発の基礎(uv, Ruff, dataclass, Pyright, Git hooks)
zenn.dev
September 7, 2025 at 5:01 AM
Do you need a recursive filter schema? Boy do I have some great news for you.

jmduke.com/posts/post/f...
March 6, 2025 at 8:25 PM
Python's dataclass decorator offers structured, readable config models to replace messy dictionaries. Follow these tips for maintainable code: compose nested records, enforce invariants, and serialize smartly. #Python #DataClasses #Configurations
Dataclasses for Structured Application Data - MachineLearningMastery.com
In this article, you will learn how Python’s dataclass decorator can replace fragile configuration dictionaries with structured, readable, and maintainable data models.
machinelearningmastery.com
September 25, 2026 at 4:39 AM
Introduction to AI Engineering: Python Development Basics (uv, Ruff, dataclass, Pyright, Git hooks) by Tomoya Miyazawa

The blog in is Japanese, but that’s what Google Translate is for.

Discusses Basics of Python Development (Project Management and Code Quality) "
September 10, 2025 at 9:36 AM
Python: Safe Defaults with "dataclass"
June 26, 2025 at 7:04 AM
Pydantic is awesome for data cleaning + validation, but if you want something quick + stdlib only, you can also use dataclasses + `__post_init__` 🐍 😍 - see example below. 🚀

#python #tips
April 11, 2025 at 9:40 AM
toda vez que vou declarar um dataclass no python eu me lembro do clássico: Tela Class

www.youtube.com/watch?v=D4PV...
Tela Class - Boquinha de Cemitério - (HD)
YouTube video by Tela Class
www.youtube.com
September 24, 2026 at 3:01 PM
dataclass é muito util, uma das paradas mais ergonômicas relacionadas a tipos
September 14, 2025 at 11:50 PM
🔌 dataclass-to-latex: CLI tool: dataclass-to-latex

📦 https://packages.debian.org/dataclass-to-latex

🔗 https://github.com/javimosch/supercli

#dataclass-to-latex #supercli
September 18, 2026 at 10:44 PM
oh you can just literally annotate it again, and it works, apparently

much easier than I thought

from dataclasses import dataclass

@dataclass
class A:
value: int = 0

@dataclass
class B(A):
value: int = 1

print(A())
print(B())
February 8, 2026 at 11:06 PM
Wall time now v close to llama-cli [PrismML fork] 🎉
September 20, 2026 at 11:56 PM
Dica de Python número 9: Função dataclass()
#Python #programadores #bolhatech #dicas #linguagemPython #dicapython
October 3, 2024 at 3:11 PM
na moral, dataclass em python é uma merdinha hein
May 24, 2025 at 5:33 PM
I just completed "Warehouse Woes" - Day 15 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/15

Lazily(?) got through this while fighting post-vaccine symptoms. Part 2 is such a simple change, but handling vertical pushes changes the approach dramatically.

(I also love dataclass!)
paste
topaz.github.io
December 15, 2024 at 8:10 AM
Maybe it did not need to be a dataclass, but I'm pretty proud of writing my first python class for the bits I needed to code today after taking some fun time over the holiday break to learn all about python classes because I am that geeky.
January 2, 2024 at 9:58 PM
Using pydantic it can automatically export OpenAPI schema from Python dataclass.
December 3, 2024 at 6:40 AM
Easily add ordering to #Python dataclasses 💡

Dataclasses aren't orderable by default. Add `order=True` to auto-generate comparison methods like __lt__ & __gt__.

This makes sorting/compare tasks seamless! Check out an example 👇

How do you use dataclasses in your projects? 🚀
January 28, 2025 at 3:25 PM
For every class you make, either:

1. create a __init__ method
2. use a tool (like the dataclass decorator) to create a __init__ method
3. inherit from a class that has a useful __init__ method method.
March 4, 2026 at 11:45 PM
Apparently in Python's dataclasses any member not set via the constructor gets ignored in equality checks. Both asserts pass in the code included code snippet. I put this example to a gist of it so I can reference it in the future: gist.github.com/pekkavaa/4a1...
August 5, 2025 at 5:56 PM
A gente começa com @dataclass e @property e depois não para mais.
November 5, 2024 at 8:43 PM