fix lint errors

This commit is contained in:
bobo.yang 2025-03-11 14:32:33 +08:00
parent 46f80573ad
commit d40cc0f34b
2 changed files with 6 additions and 4 deletions

View File

@ -8,6 +8,7 @@ import requests
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ROOT_DIR) sys.path.append(ROOT_DIR)
# noqa: I001
from api.utils import ( # noqa: E402 from api.utils import ( # noqa: E402
OPENAPI_URL, OPENAPI_URL,
PROJECT_ID, PROJECT_ID,
@ -15,8 +16,9 @@ from api.utils import ( # noqa: E402
VERSION_URL, VERSION_URL,
get_path_op_id, get_path_op_id,
session, session,
) # noqa: E402 )
# noqa: E402
from lib.chatmark.step import Step # noqa: E402 from lib.chatmark.step import Step # noqa: E402

View File

@ -22,9 +22,9 @@ class Form:
components: components in the form, can be widgets (except Button) or strings components: components in the form, can be widgets (except Button) or strings
title: title of the form title: title of the form
""" """
assert any(isinstance(c, Button) for c in components) is False, ( assert (
"Button is not allowed in Form" any(isinstance(c, Button) for c in components) is False
) ), "Button is not allowed in Form"
self._components = components self._components = components
self._title = title self._title = title