Skip to content

Conversation

@Jelleas
Copy link
Contributor

@Jelleas Jelleas commented Sep 3, 2025

Per @cmlsharp's comment in #368, Python 3.7 brought with it dataclasses that can directly replace attrs. This pr replaces the only uses of attrs in check50 with dataclasses and removes attrs as a dependency.

Opted to use python 3.10 as the 4.0.0-dev branch is already using features from Python 3.10. Such as match, and importlib.resources.files that was added in Python 3.9.

Used python 3.10 syntax for type hints (notably the use of |, and list instead of typing.List).
Set slots=True which is only supported from 3.10 onwards.

@rongxin-liu rongxin-liu self-assigned this Nov 5, 2025
@rongxin-liu rongxin-liu added the 4.x Issues relating to check50 4.x label Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x Issues relating to check50 4.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants