fix warning about props (#3451)

This commit is contained in:
Thomas Brandého 2024-06-06 22:45:22 +02:00 committed by GitHub
parent e1244b4ea6
commit 3579513964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,7 @@ class Upload(MemoizationLeaf):
key: value for key, value in props.items() if key in supported_props
}
# The file input to use.
upload = Input.create(type_="file")
upload = Input.create(type="file")
upload.special_props = {
BaseVar(_var_name="{...getInputProps()}", _var_type=None)
}