Convert a few usages of rx.base to dataclasses#1794
Conversation
Greptile SummaryThis PR migrates data-holding classes from Confidence Score: 4/5Mostly safe; one P1 in The documentation and sidebar changes are clean and correct. The P1 issue in
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PropDocumentation / Component input] --> B[prop_docs]
B --> C{safe_issubclass\nprop.type, rx.Var?}
C -- Yes --> D[type_ = get_args type_ 0]
C -- No --> E[keep type_]
D --> F[origin = get_origin type_\nargs = get_args type_]
E --> F
G[generate_props] --> H{issubclass component\nRadixThemes / RadixPrimitive?}
H -- TypeError possible --> I[unhandled TypeError\nno safe_issubclass guard]
H -- No --> J[is_interactive = False]
H -- Yes --> K[is_interactive = True]
L[render_select] --> M{safe_issubclass component\nRadixThemes / RadixPrimitive?}
M -- TypeError caught --> N[returns rx.fragment]
M -- No --> O[returns rx.fragment]
M -- Yes --> P[render select UI]
Reviews (1): Last reviewed commit: "precommit" | Re-trigger Greptile |
No description provided.