Skip to content

fix: define datetime resolution attribute#185

Merged
slashmili merged 1 commit into
slashmili:mainfrom
5j9:resolution
Jul 16, 2026
Merged

fix: define datetime resolution attribute#185
slashmili merged 1 commit into
slashmili:mainfrom
5j9:resolution

Conversation

@5j9

@5j9 5j9 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Define datetime.min, datetime.max, and datetime.resolution instead of
inheriting them from date. This aligns the API with the stdlib, where
datetime exposes its own class constants and resolution is
timedelta(microseconds=1) rather than timedelta(days=1).

Also add ClassVar annotations.

Define datetime.min, datetime.max, and datetime.resolution instead of
inheriting them from date. This aligns the API with the stdlib, where
datetime exposes its own class constants and resolution is
timedelta(microseconds=1) rather than timedelta(days=1).

Also add ClassVar annotations for date and datetime class constants.
@slashmili
slashmili merged commit 4b461d1 into slashmili:main Jul 16, 2026
13 checks passed
@slashmili

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants