-
-
Notifications
You must be signed in to change notification settings - Fork 63
Implement api/timeline #80
New issue
Have 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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from datetime import datetime | ||
| from typing import Any | ||
|
|
||
| from typing_extensions import TypedDict | ||
|
|
||
|
|
@@ -94,3 +95,8 @@ class Preferences(TypedDict, total=False): | |
| zen: int | ||
| moveEvent: int | ||
| rookCastle: int | ||
|
|
||
|
|
||
| class TimelineEvents(TypedDict): | ||
| entries: list[dict[str, Any]] | ||
| users: dict[str, Any] | ||
|
Comment on lines
+100
to
+102
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good day, the idea is not to have any There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something like this? Defining all the different event-data dicts seems quite unproductive This is not tested, just trying to get this PR implemented faster... |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally leave out the types here since they are already given via the type hints.