summaryrefslogtreecommitdiffstats
path: root/Lib/test/pydoc_mod.py
diff options
context:
space:
mode:
authorlarryhastings <larry@hastings.org>2022-10-03 22:46:09 (GMT)
committerGitHub <noreply@github.com>2022-10-03 22:46:09 (GMT)
commit00b5a08c807ebebf4180c06aac0c9b5c7d6c547f (patch)
tree46dad42c60120b6c2a234cd6383a23dddf7a0222 /Lib/test/pydoc_mod.py
parentd78aa4e11a80653588229cc97119afae693d1c06 (diff)
downloadcpython-00b5a08c807ebebf4180c06aac0c9b5c7d6c547f.zip
cpython-00b5a08c807ebebf4180c06aac0c9b5c7d6c547f.tar.gz
cpython-00b5a08c807ebebf4180c06aac0c9b5c7d6c547f.tar.bz2
gh-97799: use inspect.get_annotations in dataclass (#97800)
dataclass used to get the annotations on a class object using cls.__dict__.get('__annotations__'). Now that it always imports inspect, it can use inspect.get_annotations, which is modern best practice for coping with annotations.
Diffstat (limited to 'Lib/test/pydoc_mod.py')
0 files changed, 0 insertions, 0 deletions