Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Tweak type alias logics#10643
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codspeed-hqbot commentedOct 17, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
CodSpeed Performance ReportMerging#10643 willnot alter performanceComparing Summary
|
@Viicos, could you take a look at this one? You've had your head in this space recently... |
github-actionsbot commentedOct 17, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Coverage reportClick to see where and how coverage changed
This report was generated bypython-coverage-comment-action |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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 whenorigin
is of typeTypeAliasType
,from_property
is alwaysNone
(at least in the current tests), so moving it does not have any actual effect.
fcea8ee
intopydantic:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Change Summary
Put type alias logic after
from_property
.Related issue number
Checklist