cpython
cpython copied to clipboard
gh-96151: Use a private name for passing builtins to dataclass
There's no indication that BUILTINS is a special name. Other names that are special to dataclass are all prefixed by an underscore.
As mentioned in the issue, we can also avoid this locals dance altogether by using ().__class__.__base__ instead of BUILTINS.object.
- Issue: gh-96151