@@ -384,7 +384,7 @@ class BaseInput(BaseHTML):
384384 required : Var [bool ]
385385
386386 # Specifies the visible width of a text control
387- size : Var [int | float ]
387+ size : Var [str | int | float ]
388388
389389 # URL for image inputs
390390 src : Var [str ]
@@ -504,22 +504,22 @@ class Meter(BaseHTML):
504504 form : Var [str ]
505505
506506 # High limit of range (above this is considered high value)
507- high : Var [int | float ]
507+ high : Var [str | int | float ]
508508
509509 # Low limit of range (below this is considered low value)
510- low : Var [int | float ]
510+ low : Var [str | int | float ]
511511
512512 # Maximum value of the range
513- max : Var [int | float ]
513+ max : Var [str | int | float ]
514514
515515 # Minimum value of the range
516- min : Var [int | float ]
516+ min : Var [str | int | float ]
517517
518518 # Optimum value in the range
519- optimum : Var [int | float ]
519+ optimum : Var [str | int | float ]
520520
521521 # Current value of the meter
522- value : Var [int | float ]
522+ value : Var [str | int | float ]
523523
524524
525525class Optgroup (BaseHTML ):
@@ -666,7 +666,7 @@ class Textarea(BaseHTML):
666666 auto_height : Var [bool ]
667667
668668 # Visible width of the text control, in average character widths
669- cols : Var [int ]
669+ cols : Var [str | int ]
670670
671671 # The default value of the textarea when initially rendered
672672 default_value : Var [str ]
@@ -684,10 +684,10 @@ class Textarea(BaseHTML):
684684 form : Var [str ]
685685
686686 # Maximum number of characters allowed in the textarea
687- max_length : Var [int ]
687+ max_length : Var [str | int ]
688688
689689 # Minimum number of characters required in the textarea
690- min_length : Var [int ]
690+ min_length : Var [str | int ]
691691
692692 # Name of the textarea, used when submitting the form
693693 name : Var [str ]
@@ -702,7 +702,7 @@ class Textarea(BaseHTML):
702702 required : Var [bool ]
703703
704704 # Visible number of lines in the text control
705- rows : Var [int ]
705+ rows : Var [str | int ]
706706
707707 # The controlled value of the textarea, read only unless used with on_change
708708 value : Var [str ]
0 commit comments