Skip to content

Remove default __time = None from datetime#187

Merged
slashmili merged 1 commit into
slashmili:mainfrom
5j9:time
Jul 15, 2026
Merged

Remove default __time = None from datetime#187
slashmili merged 1 commit into
slashmili:mainfrom
5j9:time

Conversation

@5j9

@5j9 5j9 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Setting __time to None makes type checkers infer that the attribute is optional, while in reality it is always initialized by __init__.

Since __time is a private implementation detail, this change is not considered breaking.

Setting __time to None makes type checkers infer that the attribute is
optional, while in reality it is always initialized by __init__.

Since __time is a private implementation detail, this change is not
considered breaking.
@slashmili
slashmili merged commit acd4a8b into slashmili:main Jul 15, 2026
13 checks passed
@slashmili

Copy link
Copy Markdown
Owner

Thanks

@slashmili

Copy link
Copy Markdown
Owner

Released as 6.0.1

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