Skip to content

✨ Add support for the whenever package #310

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

Conversation

dusktreader
Copy link

Added a full set of annotatted classes to enable whenever types to be used with Pydantic.

Whenever docs site: https://whenever.readthedocs.io/en/latest/index.html

The following annotated classes were added

  • Core types
    • InstantAnnotation,
    • LocalDateTimeAnnotation,
    • ZonedDateTimeAnnotation,
  • Advanced types
    • OffsetDateTimeAnnotation,
    • SystemDateTimeAnnotation,
  • Deltas
    • DateDeltaAnnotation,
    • DateTimeDeltaAnnotation,
    • TimeDeltaAnnotation,

Also, a full set of unit tests was added.

Added a full set of annotatted classes to enable `whenever` types to be
used with Pydantic.

The following annotated classes were added
* Core types
  * InstantAnnotation,
  * LocalDateTimeAnnotation,
  * ZonedDateTimeAnnotation,
* Advanced types
  * OffsetDateTimeAnnotation,
  * SystemDateTimeAnnotation,
* Deltas
  * DateDeltaAnnotation,
  * DateTimeDeltaAnnotation,
  * TimeDeltaAnnotation,

Also, a full set of unit tests was added.
@dusktreader dusktreader force-pushed the dusktreader/add-whenever-annotated-types branch from 65e440c to fdd1699 Compare April 15, 2025 05:33
@dusktreader
Copy link
Author

Closing this PR as whenever is approaching a new release that may break this implementation. Additionally, whenever may come with builtin pydantic support in that release. See: ariebovenberg/whenever#175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant