llvm / llvm/llvm-project

[lit] Replace slots with @dataclass(slots=True) in lit shell utilities

Open
#200,531 0 comments 0 reactions 0 assignees View on GitHub
llvm-lit
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

There are a few classes in lit that currently use `__slots__` and have manually written `__init__` methods. Once the minimum supported Python version is bumped to 3.10, these methods can be simplified using `dataclass(slots=True)`.
This issue tracks replacing such usages and updating the associated TODO comments after the Python version bump.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.