TYP: Replace namedtuple with dataclass #40531 (#43107)
TYP: Replace namedtuple with dataclass #40531 (#43107)

* TYP: Replace namedtuple with dataclass #40531

* Fixes from pre-commit [automated commit]

* noop

Co-authored-by: MarcoGorelli <6db2da83a2d1aabf2ecda2acf5ab66b030b8d1ef@protonmail.com>
rs2/pandas,pandas-dev/pandas,rs2/pandas,jorisvandenbossche/pandas,jorisvandenbossche/pandas,pandas-dev/pandas,jorisvandenbossche/pandas,datapythonista/pandas,dsm054/pandas,jorisvandenbossche/pandas,dsm054/pandas,datapythonista/pandas,dsm054/pandas,dsm054/pandas,pandas-dev/pandas,rs2/pandas,datapythonista/pandas,dsm054/pandas,rs2/pandas,pandas-dev/pandas,datapythonista/pandas