dataclasses: Avoid using private class (#124465)
typing.get_origin() does what we need here, without reaching into typing internals. This shouldn't change any behavior (so I am going to skip news), but it sets a good example for other users introspecting typing objects.
J
Jelle Zijlstra committed
950fab46ad3a1960aa289d2d1de55447b88e25d7
Parent: 5a60566
Committed by GitHub <noreply@github.com>
on 9/24/2024, 9:02:18 PM