From e1725f9ce86211906aee255d48cc5f7d7a3c6ec2 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 19 Feb 2024 11:05:30 +0000 Subject: [PATCH] move import to the top --- src/python-fastui/fastui/components/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/python-fastui/fastui/components/__init__.py b/src/python-fastui/fastui/components/__init__.py index 8d38c096..948b8dfd 100644 --- a/src/python-fastui/fastui/components/__init__.py +++ b/src/python-fastui/fastui/components/__init__.py @@ -14,6 +14,7 @@ from .. import class_name as _class_name from .. import events from .. import types as _types +from .charts import RechartsLineChart from .display import Details, Display from .forms import ( Form, @@ -67,6 +68,8 @@ 'FormFieldInput', 'FormFieldSelect', 'FormFieldSelectSearch', + # then charts + 'RechartsLineChart', ) @@ -311,8 +314,6 @@ class Custom(_p.BaseModel, extra='forbid'): type: _t.Literal['Custom'] = 'Custom' -from .charts import RechartsLineChart - AnyComponent = _te.Annotated[ _t.Union[ Text,