Skip to content

Commit 854ccd0

Browse files
authored
remove pydantic as base class of component (#5289)
* remove pydantic as base class of component * remove deprecation * fix things with components * don't post init twice * do the new guy * keep that one as is * fix unit tests * invert bases * precommit * write that list comp as dict * mro is weird * add outer type and type for a bit of compatibility * do not think about this one, __pydantic_validate_values__ is the guy who determines subfield validation * maybe * META * a bit simpler * make _ as not js * add field_specifiers
1 parent e6208be commit 854ccd0

File tree

14 files changed

+510
-166
lines changed

14 files changed

+510
-166
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"reflex/components/datadisplay/__init__.pyi": "cf087efa8b3960decc6b231cc986cfa9",
2525
"reflex/components/datadisplay/code.pyi": "651fc3d417b998eb1c3d072328f505d0",
2626
"reflex/components/datadisplay/dataeditor.pyi": "601c59f3ced6ab94fcf5527b90472a4f",
27-
"reflex/components/datadisplay/shiki_code_block.pyi": "9aa77c0834d2eea2c1693f01971fb244",
27+
"reflex/components/datadisplay/shiki_code_block.pyi": "ac16fd6c23eef7ce0185437ecf2d529d",
2828
"reflex/components/el/__init__.pyi": "09042a2db5e0637e99b5173430600522",
2929
"reflex/components/el/element.pyi": "323cfb5d67d8ccb58ac36c7cc7641dc3",
3030
"reflex/components/el/elements/__init__.pyi": "280ed457675f3720e34b560a3f617739",

reflex/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ def _submit_work(fn: Callable[..., tuple[str, str]], *args, **kwargs):
14291429
)
14301430
if self.theme is not None:
14311431
# Fix #2992 by removing the top-level appearance prop
1432-
self.theme.appearance = None
1432+
self.theme.appearance = None # pyright: ignore[reportAttributeAccessIssue]
14331433
progress.advance(task)
14341434

14351435
# Compile the app root.

reflex/compiler/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def compile_custom_component(
309309
A tuple of the compiled component and the imports required by the component.
310310
"""
311311
# Render the component.
312-
render = component.get_component(component)
312+
render = component.get_component()
313313

314314
# Get the imports.
315315
imports: ParsedImportDict = {

0 commit comments

Comments
 (0)