summaryrefslogtreecommitdiffstats
path: root/.azure-pipelines
diff options
context:
space:
mode:
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>2023-03-25 21:40:11 (GMT)
committerGitHub <noreply@github.com>2023-03-25 21:40:11 (GMT)
commit718e86671fe62a706c460b7f049b196e434cb5b3 (patch)
tree26cd28586e4b45a8507769c1bcc56b54034e366a /.azure-pipelines
parent027223db96b0464c49a74513f82a1bf25aa510bd (diff)
downloadcpython-718e86671fe62a706c460b7f049b196e434cb5b3.zip
cpython-718e86671fe62a706c460b7f049b196e434cb5b3.tar.gz
cpython-718e86671fe62a706c460b7f049b196e434cb5b3.tar.bz2
gh-98886: Fix issues with dataclass fields with special underscore names (#102032)
This commit prefixes `__dataclass` to several things in the locals dict: - Names like `_dflt_` (which cause trouble, see first test) - Names like `_type_` (not known to be able to cause trouble) - `_return_type` (not known to able to cause trouble) - `_HAS_DEFAULT_FACTORY` (which causes trouble, see second test) In addition, this removes `MISSING` from the locals dict. As far as I can tell, this wasn't needed even in the initial implementation of dataclasses.py (and tests on that version passed with it removed). This makes me wary :-) This is basically a continuation of #96151, where fixing this was welcomed in https://github.com/python/cpython/pull/98143#issuecomment-1280306360
Diffstat (limited to '.azure-pipelines')
0 files changed, 0 insertions, 0 deletions