mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Trivially extends dataclass constructor hinting to attrs next-gen APIs. This will stumble in cases where attrs extends beyond the standard dataclasses API, such as complex use of defaults, converters, et al. However, it likely covers the vast majority of cases which fall solidly in the intersection of the two APIs. Extension beyond these cases could use [PEP0681 dataclass_transforms], however this is definitely a problem for another day. [PEP0681 dataclass_transforms]: https://peps.python.org/pep-0681/ https://github.com/davidhalter/jedi/issues/1835