Repository navigation
Commit a466c65
committed
fix: use get_origin() for typing.GenericAlias detection
Fixes #3745 by checking the origin of type expressions instead of
their class type. typing.Dict[str, Any] is a typing._GenericAlias,
not a types.GenericAlias, so the previous check failed to match it.
This ensures consistent behavior between typing.Dict and dict annotations,
preventing silent schema changes when Ruff UP006 rewrites old-style
annotations to modern syntax.1 parent b68722b commit a466c65
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
0 commit comments