8000 class_name.py throws TypeError · Issue #82 · pydantic/FastUI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
class_name.py throws TypeError #82
Closed
@jorritsma

Description

@jorritsma

Hi,

Interesting library! I am a newby and tried a hello-world app, with the default code. I run the code in a Docker container on Python 3.9. I get this TypeError:

File "/usr/local/lib/python3.9/site-packages/fastui/class_name.py", line 6, in
ClassName = Annotated[str | list[str] | dict[str, bool | None] | None, Field(serialization_alias='className')]
TypeError: unsupported operand type(s) for |: 'type' and 'types.GenericAlias'

Any suggestions?

Kind regards, Harmen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0