SIGN IN SIGN UP

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.
L
larryhastings committed
00b5a08c807ebebf4180c06aac0c9b5c7d6c547f
Parent: d78aa4e
Committed by GitHub <noreply@github.com> on 10/3/2022, 10:46:09 PM