fix lint errors
This commit is contained in:
parent
46f80573ad
commit
d40cc0f34b
@ -8,6 +8,7 @@ import requests
|
||||
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ROOT_DIR)
|
||||
|
||||
# noqa: I001
|
||||
from api.utils import ( # noqa: E402
|
||||
OPENAPI_URL,
|
||||
PROJECT_ID,
|
||||
@ -15,8 +16,9 @@ from api.utils import ( # noqa: E402
|
||||
VERSION_URL,
|
||||
get_path_op_id,
|
||||
session,
|
||||
) # noqa: E402
|
||||
)
|
||||
|
||||
# noqa: E402
|
||||
from lib.chatmark.step import Step # noqa: E402
|
||||
|
||||
|
||||
|
@ -22,9 +22,9 @@ class Form:
|
||||
components: components in the form, can be widgets (except Button) or strings
|
||||
title: title of the form
|
||||
"""
|
||||
assert any(isinstance(c, Button) for c in components) is False, (
|
||||
"Button is not allowed in Form"
|
||||
)
|
||||
assert (
|
||||
any(isinstance(c, Button) for c in components) is False
|
||||
), "Button is not allowed in Form"
|
||||
|
||||
self._components = components
|
||||
self._title = title
|
||||
|
Loading…
x
Reference in New Issue
Block a user