-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
consolidate pendulum
use in prefect._internal
#17072
Conversation
pendulum
use in prefect._internal
df314a9
to
219fa7a
Compare
CodSpeed Performance ReportMerging #17072 will not alter performanceComparing Summary
|
2e3ad8a
to
0047e73
Compare
0047e73
to
fc84ce1
Compare
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.
One small comment about naming, but otherwise LGTM!
src/prefect/types/_datetime.py
Outdated
return pendulum.tz.timezones() | ||
|
||
|
||
def pendulum_instance(v: DateTime) -> DateTime: |
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.
Could we name this something like create_datetime_instance
? Also, why do we need to call .instance
twice?
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.
nice calls on both counts, I can just use the outside .instance
working on #16910