-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
325 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
from typing import TypedDict | ||
# generated by datamodel-codegen: | ||
# filename: schema.graphql | ||
# timestamp: 2024-09-27T16:44:53+00:00 | ||
|
||
from __future__ import annotations | ||
|
||
class CollectTimeline(TypedDict): | ||
id: int | ||
action: int | ||
user_id: int | ||
subject_id: list[int] | ||
created_at: int | ||
from dataclasses import dataclass | ||
from typing import List, TypeAlias | ||
|
||
Boolean: TypeAlias = bool | ||
""" | ||
The `Boolean` scalar type represents `true` or `false`. | ||
""" | ||
|
||
Int: TypeAlias = int | ||
""" | ||
The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. | ||
""" | ||
|
||
String: TypeAlias = str | ||
""" | ||
The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. | ||
""" | ||
|
||
|
||
@dataclass | ||
class CollectTimeline: | ||
action: Int | ||
created_at: Int | ||
id: Int | ||
subject_id: List[Int] | ||
user_id: Int |
Oops, something went wrong.