Skip to content

Conversation

@AlexWaygood
Copy link
Member

The stub for datetime.datetime unnecessarily includes many methods that have identical signatures to the methods in its parent class, datetime.date. This is unnecessary.

(All of my proposed deletions are methods that are directly inherited from datetime.date, except for __hash__ and timetuple. These two are redefined in datetime.date, but maintain the same signature in the subclass that they have in the superclass.)

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 7598396 into python:master Nov 16, 2021
@AlexWaygood AlexWaygood deleted the simplify-datetime branch November 16, 2021 18:05
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