Skip to content

Commit a069850

Browse files
Allow any input type (just in case more get added)
1 parent 6e55c93 commit a069850

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pyhtml/__tags/input.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def __init__(
219219
) -> None:
220220
...
221221

222-
# default, allowing all arguments
222+
# default, suggesting types
223223
@overload
224224
def __init__(
225225
self,
@@ -235,6 +235,22 @@ def __init__(
235235
) -> None:
236236
...
237237

238+
# default, allowing all arguments
239+
@overload
240+
def __init__(
241+
self,
242+
*,
243+
type: Optional[str] = None,
244+
id: Optional[str] = None,
245+
name: Optional[str] = None,
246+
value: Optional[str] = None,
247+
placeholder: Optional[str] = None,
248+
readonly: Optional[bool] = None,
249+
required: Optional[bool] = None,
250+
**attributes: AttributeType,
251+
) -> None:
252+
...
253+
238254
def __init__(
239255
self,
240256
*,

0 commit comments

Comments
 (0)