-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class_name.py throws TypeError #82
Comments
It's an incompatibility issue with the new syntax for Solutions:
|
Thanks. I tried running fastUI with Python 3.10 instead of 3.9 and I tried with the latest fastUI via github. Both doesn't solve the TypeError. I will wait for the next release. |
I'll do a release soon, to use the current release, you need 3.11. |
this is fixed since I released v0.3.0 yeseterday. |
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
The text was updated successfully, but these errors were encountered: