reflex 0.4.7a2__py3-none-any.whl → 0.4.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (125) hide show
  1. reflex/.templates/web/utils/state.js +7 -1
  2. reflex/app.py +15 -1
  3. reflex/compiler/utils.py +1 -1
  4. reflex/components/base/body.pyi +0 -3
  5. reflex/components/base/document.pyi +0 -15
  6. reflex/components/base/fragment.pyi +0 -3
  7. reflex/components/base/head.pyi +0 -3
  8. reflex/components/base/link.pyi +0 -6
  9. reflex/components/base/meta.pyi +0 -12
  10. reflex/components/chakra/base.pyi +0 -6
  11. reflex/components/chakra/datadisplay/badge.pyi +0 -3
  12. reflex/components/chakra/datadisplay/code.pyi +0 -3
  13. reflex/components/chakra/datadisplay/divider.pyi +0 -3
  14. reflex/components/chakra/datadisplay/keyboard_key.pyi +0 -3
  15. reflex/components/chakra/datadisplay/list.pyi +0 -3
  16. reflex/components/chakra/datadisplay/stat.pyi +0 -15
  17. reflex/components/chakra/datadisplay/table.pyi +0 -12
  18. reflex/components/chakra/datadisplay/tag.pyi +0 -12
  19. reflex/components/chakra/disclosure/accordion.pyi +0 -12
  20. reflex/components/chakra/disclosure/tabs.pyi +0 -12
  21. reflex/components/chakra/disclosure/transition.pyi +0 -18
  22. reflex/components/chakra/disclosure/visuallyhidden.pyi +0 -3
  23. reflex/components/chakra/feedback/alert.pyi +0 -9
  24. reflex/components/chakra/feedback/circularprogress.pyi +0 -3
  25. reflex/components/chakra/feedback/progress.pyi +0 -3
  26. reflex/components/chakra/feedback/skeleton.pyi +0 -9
  27. reflex/components/chakra/feedback/spinner.pyi +0 -3
  28. reflex/components/chakra/forms/button.pyi +0 -6
  29. reflex/components/chakra/forms/checkbox.pyi +0 -6
  30. reflex/components/chakra/forms/colormodeswitch.pyi +0 -3
  31. reflex/components/chakra/forms/editable.pyi +0 -12
  32. reflex/components/chakra/forms/form.pyi +0 -9
  33. reflex/components/chakra/forms/iconbutton.pyi +0 -3
  34. reflex/components/chakra/forms/input.pyi +0 -15
  35. reflex/components/chakra/forms/numberinput.pyi +0 -12
  36. reflex/components/chakra/forms/pininput.py +1 -1
  37. reflex/components/chakra/forms/pininput.pyi +1 -4
  38. reflex/components/chakra/forms/radio.py +1 -1
  39. reflex/components/chakra/forms/radio.pyi +1 -1
  40. reflex/components/chakra/forms/rangeslider.py +1 -1
  41. reflex/components/chakra/forms/rangeslider.pyi +1 -10
  42. reflex/components/chakra/forms/slider.pyi +0 -12
  43. reflex/components/chakra/forms/switch.pyi +0 -3
  44. reflex/components/chakra/layout/aspect_ratio.pyi +0 -3
  45. reflex/components/chakra/layout/box.pyi +0 -3
  46. reflex/components/chakra/layout/card.pyi +0 -9
  47. reflex/components/chakra/layout/center.pyi +0 -9
  48. reflex/components/chakra/layout/container.pyi +0 -3
  49. reflex/components/chakra/layout/flex.pyi +0 -3
  50. reflex/components/chakra/layout/grid.pyi +0 -9
  51. reflex/components/chakra/layout/spacer.pyi +0 -3
  52. reflex/components/chakra/layout/stack.pyi +0 -9
  53. reflex/components/chakra/layout/wrap.pyi +0 -3
  54. reflex/components/chakra/media/avatar.pyi +0 -9
  55. reflex/components/chakra/media/icon.pyi +0 -3
  56. reflex/components/chakra/navigation/breadcrumb.pyi +0 -3
  57. reflex/components/chakra/navigation/linkoverlay.pyi +0 -6
  58. reflex/components/chakra/navigation/stepper.pyi +0 -24
  59. reflex/components/chakra/overlay/alertdialog.pyi +0 -18
  60. reflex/components/chakra/overlay/drawer.pyi +0 -18
  61. reflex/components/chakra/overlay/menu.pyi +0 -18
  62. reflex/components/chakra/overlay/modal.pyi +0 -18
  63. reflex/components/chakra/overlay/popover.pyi +0 -24
  64. reflex/components/chakra/overlay/tooltip.pyi +0 -3
  65. reflex/components/chakra/typography/heading.pyi +0 -3
  66. reflex/components/chakra/typography/highlight.pyi +0 -3
  67. reflex/components/chakra/typography/span.pyi +0 -3
  68. reflex/components/chakra/typography/text.pyi +0 -3
  69. reflex/components/component.py +61 -22
  70. reflex/components/core/client_side_routing.pyi +0 -6
  71. reflex/components/core/upload.py +3 -1
  72. reflex/components/core/upload.pyi +0 -3
  73. reflex/components/el/element.pyi +0 -3
  74. reflex/components/el/elements/base.pyi +0 -3
  75. reflex/components/el/elements/forms.pyi +0 -39
  76. reflex/components/el/elements/inline.pyi +0 -84
  77. reflex/components/el/elements/media.pyi +0 -42
  78. reflex/components/el/elements/metadata.pyi +0 -15
  79. reflex/components/el/elements/other.pyi +0 -21
  80. reflex/components/el/elements/scripts.pyi +0 -9
  81. reflex/components/el/elements/sectioning.pyi +0 -45
  82. reflex/components/el/elements/tables.pyi +0 -30
  83. reflex/components/el/elements/typography.pyi +0 -45
  84. reflex/components/gridjs/datatable.pyi +0 -3
  85. reflex/components/lucide/icon.pyi +0 -3
  86. reflex/components/next/base.pyi +0 -3
  87. reflex/components/next/link.pyi +0 -3
  88. reflex/components/plotly/plotly.pyi +0 -6
  89. reflex/components/radix/primitives/accordion.pyi +0 -3
  90. reflex/components/radix/primitives/base.pyi +0 -6
  91. reflex/components/radix/primitives/drawer.pyi +0 -21
  92. reflex/components/radix/primitives/form.pyi +0 -18
  93. reflex/components/radix/primitives/progress.pyi +0 -9
  94. reflex/components/radix/primitives/slider.pyi +0 -15
  95. reflex/components/radix/themes/base.pyi +0 -6
  96. reflex/components/react_player/audio.pyi +0 -3
  97. reflex/components/react_player/react_player.pyi +0 -3
  98. reflex/components/react_player/video.pyi +0 -3
  99. reflex/components/recharts/cartesian.pyi +0 -57
  100. reflex/components/recharts/general.pyi +0 -12
  101. reflex/components/recharts/polar.pyi +0 -18
  102. reflex/components/recharts/recharts.pyi +0 -3
  103. reflex/constants/__init__.py +2 -0
  104. reflex/constants/base.py +5 -0
  105. reflex/constants/compiler.py +2 -0
  106. reflex/constants/installer.py +4 -2
  107. reflex/custom_components/custom_components.py +28 -34
  108. reflex/event.py +7 -6
  109. reflex/experimental/__init__.py +2 -0
  110. reflex/experimental/misc.py +12 -0
  111. reflex/model.py +1 -1
  112. reflex/reflex.py +0 -1
  113. reflex/utils/compat.py +43 -0
  114. reflex/utils/console.py +10 -1
  115. reflex/utils/export.py +1 -3
  116. reflex/utils/imports.py +14 -1
  117. reflex/utils/prerequisites.py +71 -45
  118. reflex/utils/processes.py +41 -4
  119. reflex/utils/serializers.py +14 -0
  120. reflex/utils/types.py +4 -3
  121. {reflex-0.4.7a2.dist-info → reflex-0.4.8.dist-info}/METADATA +1 -1
  122. {reflex-0.4.7a2.dist-info → reflex-0.4.8.dist-info}/RECORD +125 -123
  123. {reflex-0.4.7a2.dist-info → reflex-0.4.8.dist-info}/WHEEL +1 -1
  124. {reflex-0.4.7a2.dist-info → reflex-0.4.8.dist-info}/LICENSE +0 -0
  125. {reflex-0.4.7a2.dist-info → reflex-0.4.8.dist-info}/entry_points.txt +0 -0
@@ -274,9 +274,6 @@ class DrawerBody(ChakraComponent):
274
274
 
275
275
  Returns:
276
276
  The component.
277
-
278
- Raises:
279
- TypeError: If an invalid child is passed.
280
277
  """
281
278
  ...
282
279
 
@@ -353,9 +350,6 @@ class DrawerHeader(ChakraComponent):
353
350
 
354
351
  Returns:
355
352
  The component.
356
-
357
- Raises:
358
- TypeError: If an invalid child is passed.
359
353
  """
360
354
  ...
361
355
 
@@ -432,9 +426,6 @@ class DrawerFooter(ChakraComponent):
432
426
 
433
427
  Returns:
434
428
  The component.
435
-
436
- Raises:
437
- TypeError: If an invalid child is passed.
438
429
  """
439
430
  ...
440
431
 
@@ -511,9 +502,6 @@ class DrawerOverlay(ChakraComponent):
511
502
 
512
503
  Returns:
513
504
  The component.
514
-
515
- Raises:
516
- TypeError: If an invalid child is passed.
517
505
  """
518
506
  ...
519
507
 
@@ -590,9 +578,6 @@ class DrawerContent(ChakraComponent):
590
578
 
591
579
  Returns:
592
580
  The component.
593
-
594
- Raises:
595
- TypeError: If an invalid child is passed.
596
581
  """
597
582
  ...
598
583
 
@@ -669,8 +654,5 @@ class DrawerCloseButton(ChakraComponent):
669
654
 
670
655
  Returns:
671
656
  The component.
672
-
673
- Raises:
674
- TypeError: If an invalid child is passed.
675
657
  """
676
658
  ...
@@ -218,9 +218,6 @@ class MenuButton(ChakraComponent):
218
218
 
219
219
  Returns:
220
220
  The component.
221
-
222
- Raises:
223
- TypeError: If an invalid child is passed.
224
221
  """
225
222
  ...
226
223
 
@@ -385,9 +382,6 @@ class MenuItem(ChakraComponent):
385
382
 
386
383
  Returns:
387
384
  The component.
388
-
389
- Raises:
390
- TypeError: If an invalid child is passed.
391
385
  """
392
386
  ...
393
387
 
@@ -482,9 +476,6 @@ class MenuItemOption(ChakraComponent):
482
476
 
483
477
  Returns:
484
478
  The component.
485
-
486
- Raises:
487
- TypeError: If an invalid child is passed.
488
479
  """
489
480
  ...
490
481
 
@@ -561,9 +552,6 @@ class MenuGroup(ChakraComponent):
561
552
 
562
553
  Returns:
563
554
  The component.
564
-
565
- Raises:
566
- TypeError: If an invalid child is passed.
567
555
  """
568
556
  ...
569
557
 
@@ -646,9 +634,6 @@ class MenuOptionGroup(ChakraComponent):
646
634
 
647
635
  Returns:
648
636
  The component.
649
-
650
- Raises:
651
- TypeError: If an invalid child is passed.
652
637
  """
653
638
  ...
654
639
 
@@ -725,8 +710,5 @@ class MenuDivider(ChakraComponent):
725
710
 
726
711
  Returns:
727
712
  The component.
728
-
729
- Raises:
730
- TypeError: If an invalid child is passed.
731
713
  """
732
714
  ...
@@ -219,9 +219,6 @@ class ModalOverlay(ChakraComponent):
219
219
 
220
220
  Returns:
221
221
  The component.
222
-
223
- Raises:
224
- TypeError: If an invalid child is passed.
225
222
  """
226
223
  ...
227
224
 
@@ -298,9 +295,6 @@ class ModalHeader(ChakraComponent):
298
295
 
299
296
  Returns:
300
297
  The component.
301
-
302
- Raises:
303
- TypeError: If an invalid child is passed.
304
298
  """
305
299
  ...
306
300
 
@@ -377,9 +371,6 @@ class ModalFooter(ChakraComponent):
377
371
 
378
372
  Returns:
379
373
  The component.
380
-
381
- Raises:
382
- TypeError: If an invalid child is passed.
383
374
  """
384
375
  ...
385
376
 
@@ -456,9 +447,6 @@ class ModalContent(ChakraComponent):
456
447
 
457
448
  Returns:
458
449
  The component.
459
-
460
- Raises:
461
- TypeError: If an invalid child is passed.
462
450
  """
463
451
  ...
464
452
 
@@ -535,9 +523,6 @@ class ModalBody(ChakraComponent):
535
523
 
536
524
  Returns:
537
525
  The component.
538
-
539
- Raises:
540
- TypeError: If an invalid child is passed.
541
526
  """
542
527
  ...
543
528
 
@@ -614,8 +599,5 @@ class ModalCloseButton(ChakraComponent):
614
599
 
615
600
  Returns:
616
601
  The component.
617
-
618
- Raises:
619
- TypeError: If an invalid child is passed.
620
602
  """
621
603
  ...
@@ -227,9 +227,6 @@ class PopoverContent(ChakraComponent):
227
227
 
228
228
  Returns:
229
229
  The component.
230
-
231
- Raises:
232
- TypeError: If an invalid child is passed.
233
230
  """
234
231
  ...
235
232
 
@@ -306,9 +303,6 @@ class PopoverHeader(ChakraComponent):
306
303
 
307
304
  Returns:
308
305
  The component.
309
-
310
- Raises:
311
- TypeError: If an invalid child is passed.
312
306
  """
313
307
  ...
314
308
 
@@ -385,9 +379,6 @@ class PopoverFooter(ChakraComponent):
385
379
 
386
380
  Returns:
387
381
  The component.
388
-
389
- Raises:
390
- TypeError: If an invalid child is passed.
391
382
  """
392
383
  ...
393
384
 
@@ -464,9 +455,6 @@ class PopoverBody(ChakraComponent):
464
455
 
465
456
  Returns:
466
457
  The component.
467
-
468
- Raises:
469
- TypeError: If an invalid child is passed.
470
458
  """
471
459
  ...
472
460
 
@@ -543,9 +531,6 @@ class PopoverArrow(ChakraComponent):
543
531
 
544
532
  Returns:
545
533
  The component.
546
-
547
- Raises:
548
- TypeError: If an invalid child is passed.
549
534
  """
550
535
  ...
551
536
 
@@ -622,9 +607,6 @@ class PopoverCloseButton(ChakraComponent):
622
607
 
623
608
  Returns:
624
609
  The component.
625
-
626
- Raises:
627
- TypeError: If an invalid child is passed.
628
610
  """
629
611
  ...
630
612
 
@@ -701,9 +683,6 @@ class PopoverAnchor(ChakraComponent):
701
683
 
702
684
  Returns:
703
685
  The component.
704
-
705
- Raises:
706
- TypeError: If an invalid child is passed.
707
686
  """
708
687
  ...
709
688
 
@@ -780,8 +759,5 @@ class PopoverTrigger(ChakraComponent):
780
759
 
781
760
  Returns:
782
761
  The component.
783
-
784
- Raises:
785
- TypeError: If an invalid child is passed.
786
762
  """
787
763
  ...
@@ -127,8 +127,5 @@ class Tooltip(ChakraComponent):
127
127
 
128
128
  Returns:
129
129
  The component.
130
-
131
- Raises:
132
- TypeError: If an invalid child is passed.
133
130
  """
134
131
  ...
@@ -92,8 +92,5 @@ class Heading(ChakraComponent):
92
92
 
93
93
  Returns:
94
94
  The component.
95
-
96
- Raises:
97
- TypeError: If an invalid child is passed.
98
95
  """
99
96
  ...
@@ -89,8 +89,5 @@ class Highlight(ChakraComponent):
89
89
 
90
90
  Returns:
91
91
  The component.
92
-
93
- Raises:
94
- TypeError: If an invalid child is passed.
95
92
  """
96
93
  ...
@@ -85,8 +85,5 @@ class Span(ChakraComponent):
85
85
 
86
86
  Returns:
87
87
  The component.
88
-
89
- Raises:
90
- TypeError: If an invalid child is passed.
91
88
  """
92
89
  ...
@@ -87,8 +87,5 @@ class Text(ChakraComponent):
87
87
 
88
88
  Returns:
89
89
  The component.
90
-
91
- Raises:
92
- TypeError: If an invalid child is passed.
93
90
  """
94
91
  ...
@@ -64,6 +64,9 @@ class BaseComponent(Base, ABC):
64
64
  # List here the non-react dependency needed by `library`
65
65
  lib_dependencies: List[str] = []
66
66
 
67
+ # List here the dependencies that need to be transpiled by Next.js
68
+ transpile_packages: List[str] = []
69
+
67
70
  # The tag to use when rendering the component.
68
71
  tag: Optional[str] = None
69
72
 
@@ -368,7 +371,7 @@ class Component(BaseComponent, ABC):
368
371
  """Create an event chain from a variety of input types.
369
372
 
370
373
  Args:
371
- args_spec: The args_spec of the the event trigger being bound.
374
+ args_spec: The args_spec of the event trigger being bound.
372
375
  value: The value to create the event chain from.
373
376
 
374
377
  Returns:
@@ -471,9 +474,11 @@ class Component(BaseComponent, ABC):
471
474
  # e.g. variable declared as EventHandler types.
472
475
  for field in self.get_fields().values():
473
476
  if types._issubclass(field.type_, EventHandler):
474
- default_triggers[field.name] = getattr(
475
- field.type_, "args_spec", lambda: []
476
- )
477
+ args_spec = None
478
+ annotation = field.annotation
479
+ if hasattr(annotation, "__metadata__"):
480
+ args_spec = annotation.__metadata__[0]
481
+ default_triggers[field.name] = args_spec or (lambda: [])
477
482
  return default_triggers
478
483
 
479
484
  def __repr__(self) -> str:
@@ -614,12 +619,10 @@ class Component(BaseComponent, ABC):
614
619
 
615
620
  Returns:
616
621
  The component.
617
-
618
- Raises:
619
- TypeError: If an invalid child is passed.
620
622
  """
621
623
  # Import here to avoid circular imports.
622
624
  from reflex.components.base.bare import Bare
625
+ from reflex.components.base.fragment import Fragment
623
626
 
624
627
  # Translate deprecated props to new names.
625
628
  new_prop_names = [
@@ -640,20 +643,27 @@ class Component(BaseComponent, ABC):
640
643
  # Filter out None props
641
644
  props = {key: value for key, value in props.items() if value is not None}
642
645
 
646
+ def validate_children(children):
647
+ for child in children:
648
+ if isinstance(child, tuple):
649
+ validate_children(child)
650
+ # Make sure the child is a valid type.
651
+ if not types._isinstance(child, ComponentChild):
652
+ raise TypeError(
653
+ "Children of Reflex components must be other components, "
654
+ "state vars, or primitive Python types. "
655
+ f"Got child {child} of type {type(child)}.",
656
+ )
657
+
643
658
  # Validate all the children.
644
- for child in children:
645
- # Make sure the child is a valid type.
646
- if not types._isinstance(child, ComponentChild):
647
- raise TypeError(
648
- "Children of Reflex components must be other components, "
649
- "state vars, or primitive Python types. "
650
- f"Got child {child} of type {type(child)}.",
651
- )
659
+ validate_children(children)
652
660
 
653
661
  children = [
654
662
  (
655
663
  child
656
664
  if isinstance(child, Component)
665
+ else Fragment.create(*child)
666
+ if isinstance(child, tuple)
657
667
  else Bare.create(contents=Var.create(child, _var_is_string=True))
658
668
  )
659
669
  for child in children
@@ -987,6 +997,20 @@ class Component(BaseComponent, ABC):
987
997
  if getattr(self, prop) is not None
988
998
  ]
989
999
 
1000
+ def _should_transpile(self, dep: str | None) -> bool:
1001
+ """Check if a dependency should be transpiled.
1002
+
1003
+ Args:
1004
+ dep: The dependency to check.
1005
+
1006
+ Returns:
1007
+ True if the dependency should be transpiled.
1008
+ """
1009
+ return (
1010
+ dep in self.transpile_packages
1011
+ or format.format_library_name(dep or "") in self.transpile_packages
1012
+ )
1013
+
990
1014
  def _get_dependencies_imports(self) -> imports.ImportDict:
991
1015
  """Get the imports from lib_dependencies for installing.
992
1016
 
@@ -994,7 +1018,14 @@ class Component(BaseComponent, ABC):
994
1018
  The dependencies imports of the component.
995
1019
  """
996
1020
  return {
997
- dep: [ImportVar(tag=None, render=False)] for dep in self.lib_dependencies
1021
+ dep: [
1022
+ ImportVar(
1023
+ tag=None,
1024
+ render=False,
1025
+ transpile=self._should_transpile(dep),
1026
+ )
1027
+ ]
1028
+ for dep in self.lib_dependencies
998
1029
  }
999
1030
 
1000
1031
  def _get_hooks_imports(self) -> imports.ImportDict:
@@ -1250,7 +1281,12 @@ class Component(BaseComponent, ABC):
1250
1281
  # If the tag is dot-qualified, only import the left-most name.
1251
1282
  tag = self.tag.partition(".")[0] if self.tag else None
1252
1283
  alias = self.alias.partition(".")[0] if self.alias else None
1253
- return ImportVar(tag=tag, is_default=self.is_default, alias=alias)
1284
+ return ImportVar(
1285
+ tag=tag,
1286
+ is_default=self.is_default,
1287
+ alias=alias,
1288
+ transpile=self._should_transpile(self.library),
1289
+ )
1254
1290
 
1255
1291
  @staticmethod
1256
1292
  def _get_app_wrap_components() -> dict[tuple[int, str], Component]:
@@ -1514,7 +1550,13 @@ class NoSSRComponent(Component):
1514
1550
 
1515
1551
  # Do NOT import the main library/tag statically.
1516
1552
  if self.library is not None:
1517
- _imports[self.library] = [imports.ImportVar(tag=None, render=False)]
1553
+ _imports[self.library] = [
1554
+ imports.ImportVar(
1555
+ tag=None,
1556
+ render=False,
1557
+ transpile=self._should_transpile(self.library),
1558
+ ),
1559
+ ]
1518
1560
 
1519
1561
  return imports.merge_imports(
1520
1562
  dynamic_import,
@@ -1529,10 +1571,7 @@ class NoSSRComponent(Component):
1529
1571
  if self.library is None:
1530
1572
  raise ValueError("Undefined library for NoSSRComponent")
1531
1573
 
1532
- import_name_parts = [p for p in self.library.rpartition("@") if p != ""]
1533
- import_name = (
1534
- import_name_parts[0] if import_name_parts[0] != "@" else self.library
1535
- )
1574
+ import_name = format.format_library_name(self.library)
1536
1575
 
1537
1576
  library_import = f"const {self.alias if self.alias else self.tag} = dynamic(() => import('{import_name}')"
1538
1577
  mod_import = (
@@ -88,9 +88,6 @@ class ClientSideRouting(Component):
88
88
 
89
89
  Returns:
90
90
  The component.
91
-
92
- Raises:
93
- TypeError: If an invalid child is passed.
94
91
  """
95
92
  ...
96
93
 
@@ -170,8 +167,5 @@ class Default404Page(Component):
170
167
 
171
168
  Returns:
172
169
  The component.
173
-
174
- Raises:
175
- TypeError: If an invalid child is passed.
176
170
  """
177
171
  ...
@@ -140,7 +140,9 @@ def get_upload_url(file_path: str) -> Var[str]:
140
140
  """
141
141
  Upload.is_used = True
142
142
 
143
- return Var.create_safe(f"{uploaded_files_url_prefix}/{file_path}")
143
+ return Var.create_safe(
144
+ f"{uploaded_files_url_prefix}/{file_path}", _var_is_string=True
145
+ )
144
146
 
145
147
 
146
148
  def _on_drop_spec(files: Var):
@@ -115,9 +115,6 @@ class UploadFilesProvider(Component):
115
115
 
116
116
  Returns:
117
117
  The component.
118
-
119
- Raises:
120
- TypeError: If an invalid child is passed.
121
118
  """
122
119
  ...
123
120
 
@@ -82,8 +82,5 @@ class Element(Component):
82
82
 
83
83
  Returns:
84
84
  The component.
85
-
86
- Raises:
87
- TypeError: If an invalid child is passed.
88
85
  """
89
86
  ...
@@ -140,8 +140,5 @@ class BaseHTML(Element):
140
140
 
141
141
  Returns:
142
142
  The component.
143
-
144
- Raises:
145
- TypeError: If an invalid child is passed.
146
143
  """
147
144
  ...
@@ -189,9 +189,6 @@ class Button(BaseHTML):
189
189
 
190
190
  Returns:
191
191
  The component.
192
-
193
- Raises:
194
- TypeError: If an invalid child is passed.
195
192
  """
196
193
  ...
197
194
 
@@ -324,9 +321,6 @@ class Datalist(BaseHTML):
324
321
 
325
322
  Returns:
326
323
  The component.
327
-
328
- Raises:
329
- TypeError: If an invalid child is passed.
330
324
  """
331
325
  ...
332
326
 
@@ -411,9 +405,6 @@ class Fieldset(Element):
411
405
 
412
406
  Returns:
413
407
  The component.
414
-
415
- Raises:
416
- TypeError: If an invalid child is passed.
417
408
  """
418
409
  ...
419
410
 
@@ -838,9 +829,6 @@ class Input(BaseHTML):
838
829
 
839
830
  Returns:
840
831
  The component.
841
-
842
- Raises:
843
- TypeError: If an invalid child is passed.
844
832
  """
845
833
  ...
846
834
 
@@ -979,9 +967,6 @@ class Label(BaseHTML):
979
967
 
980
968
  Returns:
981
969
  The component.
982
-
983
- Raises:
984
- TypeError: If an invalid child is passed.
985
970
  """
986
971
  ...
987
972
 
@@ -1114,9 +1099,6 @@ class Legend(BaseHTML):
1114
1099
 
1115
1100
  Returns:
1116
1101
  The component.
1117
-
1118
- Raises:
1119
- TypeError: If an invalid child is passed.
1120
1102
  """
1121
1103
  ...
1122
1104
 
@@ -1267,9 +1249,6 @@ class Meter(BaseHTML):
1267
1249
 
1268
1250
  Returns:
1269
1251
  The component.
1270
-
1271
- Raises:
1272
- TypeError: If an invalid child is passed.
1273
1252
  """
1274
1253
  ...
1275
1254
 
@@ -1410,9 +1389,6 @@ class Optgroup(BaseHTML):
1410
1389
 
1411
1390
  Returns:
1412
1391
  The component.
1413
-
1414
- Raises:
1415
- TypeError: If an invalid child is passed.
1416
1392
  """
1417
1393
  ...
1418
1394
 
@@ -1561,9 +1537,6 @@ class Option(BaseHTML):
1561
1537
 
1562
1538
  Returns:
1563
1539
  The component.
1564
-
1565
- Raises:
1566
- TypeError: If an invalid child is passed.
1567
1540
  """
1568
1541
  ...
1569
1542
 
@@ -1704,9 +1677,6 @@ class Output(BaseHTML):
1704
1677
 
1705
1678
  Returns:
1706
1679
  The component.
1707
-
1708
- Raises:
1709
- TypeError: If an invalid child is passed.
1710
1680
  """
1711
1681
  ...
1712
1682
 
@@ -1847,9 +1817,6 @@ class Progress(BaseHTML):
1847
1817
 
1848
1818
  Returns:
1849
1819
  The component.
1850
-
1851
- Raises:
1852
- TypeError: If an invalid child is passed.
1853
1820
  """
1854
1821
  ...
1855
1822
 
@@ -2012,9 +1979,6 @@ class Select(BaseHTML):
2012
1979
 
2013
1980
  Returns:
2014
1981
  The component.
2015
-
2016
- Raises:
2017
- TypeError: If an invalid child is passed.
2018
1982
  """
2019
1983
  ...
2020
1984
 
@@ -2214,8 +2178,5 @@ class Textarea(BaseHTML):
2214
2178
 
2215
2179
  Returns:
2216
2180
  The component.
2217
-
2218
- Raises:
2219
- TypeError: If an invalid child is passed.
2220
2181
  """
2221
2182
  ...