You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the json_schema_extra to change the way our frontend visualizes input fields. I want to add typing to this so our developers know which options are available.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We use the
json_schema_extra
to change the way our frontend visualizes input fields. I want to add typing to this so our developers know which options are available.I expected this to work:
But both mypy and pylance complain:
I came up with this somewhat elegant solution, but feels more hacky then it should be?
Beta Was this translation helpful? Give feedback.
All reactions