kopia lustrzana https://github.com/halcy/Mastodon.py
rodzic
4c8875a5c5
commit
3b6291d3a5
|
@ -28,7 +28,7 @@ and everything will work as intended. The class used for this is exposed as
|
||||||
Since version 2.0.0, Mastodon.py is fully typed - there are now classes for all
|
Since version 2.0.0, Mastodon.py is fully typed - there are now classes for all
|
||||||
return types, and all functions have type hints. Note that the base class is still
|
return types, and all functions have type hints. Note that the base class is still
|
||||||
the AttribAccessDict - this means that you can still access all returned values as
|
the AttribAccessDict - this means that you can still access all returned values as
|
||||||
attributes, `even if a type does not define them.`. Lists have been split into lists
|
attributes, `even if a type does not define them`. Lists have been split into lists
|
||||||
that can be paginated (i.e. that have pagination attributes) and those that cannot.
|
that can be paginated (i.e. that have pagination attributes) and those that cannot.
|
||||||
|
|
||||||
All return values can be converted from and to JSON using the `to_json()` and `from_json()`
|
All return values can be converted from and to JSON using the `to_json()` and `from_json()`
|
||||||
|
@ -412,3 +412,4 @@ Deprecated types
|
||||||
.. autoclass:: mastodon.return_types.IdentityProof
|
.. autoclass:: mastodon.return_types.IdentityProof
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue