Commit 950fab4
authored
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.1 parent 5a60566 commit 950fab4
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | | - | |
695 | 693 | | |
696 | | - | |
697 | | - | |
| 694 | + | |
698 | 695 | | |
699 | 696 | | |
700 | 697 | | |
| |||
0 commit comments