-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
fix: remove OptionalSequence
helper type.
#2370
Conversation
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 would advocate to remove OptionaSequence
at some point for two reasons:
- Custom type aliases for common types are harder to read (I guess that
OptionalSequence
isSequence[T] | None
Optional
is longer than| None
:)
Agreed. This is likely just cruft leftover from before we added |
This PR corrects cases where we have types annotated as `OptionalSequence[T] | None` by removing the `OptionalSequence` helper type.
OptionalSequence[T]
union with None
.OptionalSequence
helper type.
d9eee9d
to
95018a3
Compare
Kudos, SonarCloud Quality Gate passed! |
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/2370 |
This PR corrects cases where we have types annotated as
OptionalSequence[T] | None
by removing theOptionalSequence
helper type.Pull Request Checklist
Description
Close Issue(s)