-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Tweak type alias logics #10643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak type alias logics #10643
Conversation
CodSpeed Performance ReportMerging #10643 will not alter performanceComparing Summary
|
|
@Viicos, could you take a look at this one? You've had your head in this space recently... |
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
| if isinstance(origin, TypeAliasType): | ||
| return self._type_alias_type_schema(obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was it moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think without a special reason (e.g. dataclass above), these matching clauses should better be put together to make things clearer. Looks like when origin is of type TypeAliasType, from_property is always None (at least in the current tests), so moving it does not have any actual effect.
Change Summary
Put type alias logic after
from_property.Related issue number
Checklist