Skip to content

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