-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Due to a circular import, the AnyComponent
alias is imported in an if TYPE_CHECKING:
block in fastui.components.forms
:
FastUI/src/python-fastui/fastui/components/forms.py
Lines 12 to 13 in 5d9d604
if _t.TYPE_CHECKING: | |
from . import AnyComponent |
and later used in one of the defined models for this module:
FastUI/src/python-fastui/fastui/components/forms.py
Lines 187 to 191 in 5d9d604
loading: '_t.Union[_t.List[AnyComponent], None]' = None | |
"""Components to display while the form is submitting.""" | |
footer: '_t.Union[_t.List[AnyComponent], None]' = None | |
"""Components to display in the form footer.""" |
While this used to work in <2.10 because of namespace pollution inconsistencies, it doesn't with 2.10 as AnyComponent
(which doesn't exist in the module namespace at runtime) isn't available.
Best way forward would be to fix the circular import, haven't found a viable implementation yet.
nekeal, EnyMan, BonifacioCalindoro, Kilo59, rgimen3z and 2 more
Metadata
Metadata
Assignees
Labels
No labels