Skip to content

Commit

Permalink
support older versions of python
Browse files Browse the repository at this point in the history
  • Loading branch information
rgimen3z committed Feb 28, 2024
1 parent 7e74eb8 commit b624c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python-fastui/fastui/json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def input_html_type(schema: JsonSchemaField) -> InputHtmlType:
raise ValueError(f'Unknown schema: {schema}') from e


def get_default_step(schema: JsonSchemaField) -> _t.Literal['any'] | None:
def get_default_step(schema: JsonSchemaField) -> _t.Union[_t.Literal['any'], None]:
key = schema['type']
if key == 'integer':
return None
Expand Down

0 comments on commit b624c02

Please sign in to comment.