You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ._jsonimportJsonifiable, JsonifiableDict, ResponseAttrs
@@ -23,6 +24,21 @@
23
24
# * Classes should write the `path` only once within its init method.
24
25
# * Through regular interactions, the path should only be written once.
25
26
27
+
# TODO-barret; Add `.client` (a `Client` class) within `._ctx`.
28
+
29
+
# When making a new class,
30
+
# * Use a class to define the parameters and their types
31
+
# * If attaching the type info class to the parent class, start with `_`. E.g.: `_Attrs`
32
+
# * Document all attributes like normal
33
+
# * When the time comes that there are multiple attribute types, we can use overloads with full documentation and unpacking of type info class for each overload method.
34
+
# * Inherit from `ApiDictEndpoint` or `ApiListEndpoint` as needed
35
+
# * Init signature should be `def __init__(self, ctx: Context, path: str, /, **attrs: Jsonifiable) -> None:`
36
+
# *
37
+
#
38
+
#
39
+
# * Inherit from `ApiDictEndpoint` or `ApiListEndpoint` as needed
40
+
# Use a internal
41
+
26
42
27
43
# TODO-future?; Add type hints for the ReadOnlyDict class
0 commit comments