GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Make datetime generic over tzinfo by srittau · Pull Request #11844 · python/typeshed Make datetime generic over tzinfo #11844New issueHave 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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
4c32d0c
Make datetime generic over tzinfo
srittau e2a3800
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 814df90
Ignore stubtest error
srittau a5492ba
Overload operators
srittau d176a1d
Update some type ignores
srittau 040dbcb
Ignore some mypy errors
srittau 7ce96ea
Make pyright a bit happier
srittau ce3ee77
Add another type ignore
srittau c59db10
Make pyright mostly happy
srittau c0d5cc1
Set default to `Any`
srittau eb4f7d8
Make both, pyright and mypy happy
srittau 14aa5d2
Annotate datetime.today()
srittau d8d9d41
Use explicit datetime annotation in test
srittau f656dbb
Revert bound, use covariance
srittau 25a3e48
Annotate datetime.strptime()
srittau ce3c470
Reshuffle annotations; use Any as default again
srittau b148970
Add some type ignores
srittau f9d5875
Merge branch 'main' into datetime-tzinfo
srittau 605f598
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 510c87f
Revert unittest tests
srittau 2b2c314
Fix a test
srittau cbf66a8
Add another type ignore
srittau 4974026
Restore changes to check_unittest
srittau d7b69b1
Fix grouping
srittau 9b8d191
Merge branch 'main' into datetime-tzinfo
srittau a903506
Merge branch 'main' into datetime-tzinfo
srittau c57ace3
Merge branch 'main' into datetime-tzinfo
srittau 94cd215
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ae727f4
Fix merge problems
srittau 99c7433
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2683f1b
Change `_TzInfoT` default to `tzinfo | None`
srittau 86b5ced
Use `datetime[None]` for `datetime.{min,max}`
srittau 73d99dc
Remove datetime.fromisoformat() override
srittau 147cfa8
Return `datetime[_TzInfo]` from `astimezone()`
srittau 2df8134
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e2efb0e
Revert `Final` change
srittau 79e966e
Use `datetime[_TzInfo] | datetime[None]` as strptime() return type
srittau 9d1f57a
Use `Any` default for `_TzInfoT`
srittau 15cd3aa
Return `datetime` from `fromisoformat`
srittau 45db0fb
Split fromisoformat datetime union
srittau d95f348
Update a test
srittau 0e3099c
Remove special casing of datetime.strptime()
srittau ebf7984
Restore explicit datetime.strptime with changed return type
srittau d515efb
Fix missing import
srittau 8b0f3a4
Add an extra overload to datetime.fromtimestamp
srittau 637848c
Fix date.fromisoformat
srittau 8656ee9
Remove obsolete comment
srittau File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff view
Remove special casing of datetime.strptime()
Now it should return `Self`, which means `datetime[Any]` for plain `datetime` objects. Since the format string is user defined, callers usually know whether the returned datetime object is naive or tz-aware, so a union can be overly strict.
Uh oh!
There was an error while loading. Please reload this page.
commit 0e3099caf3f891dedb7f22dced5c77b95d758189
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |