Skip to content

Data type for generic card? #918

Answered by lo5
mtanco asked this question in Q&A
Discussion options

You must be logged in to vote

The cards don't inherit from a common base class. Anything that is either a dict or an object with a dump() -> dict method can be added to a page. The API uses Any since I'm not aware of a precise way to express this using typing.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mtanco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants