diff --git a/taipy/gui/gui.py b/taipy/gui/gui.py index 6989cefae..d4005db52 100644 --- a/taipy/gui/gui.py +++ b/taipy/gui/gui.py @@ -232,8 +232,8 @@ def __init__( If this argument is set, this `Gui` instance will use the value of this argument as the underlying server. If omitted or set to None, this `Gui` will create its own Flask application instance and use it to serve the pages. - script_paths (Optional[Union[str, Path, List[Union[str, Path]]]]): Specifies the path(s) to the JavaScript files - or external resources used by the application. + script_paths (Optional[Union[str, Path, List[Union[str, Path]]]]): + Specifies the path(s) to the JavaScript files or external resources used by the application. It can be a single URL or path, or a list containing multiple URLs and/or paths. """ # store suspected local containing frame @@ -1234,7 +1234,7 @@ def __request_data_update(self, var_name: str, payload: t.Any) -> None: if ret_payload: break except Exception as e: # pragma: no cover - _warn(f"Exception raised in '{lib_name}.get_data({lib_name}, payload, {user_var_name}, value)'",# noqa: E501 + _warn(f"Exception raised in '{lib_name}.get_data({lib_name}, payload, {user_var_name}, value)'", # noqa: E501 e, ) if not isinstance(ret_payload, dict): @@ -2057,7 +2057,7 @@ def add_page( raise Exception("name is required for add_page() function.") if not Gui.__RE_PAGE_NAME.match(name): # pragma: no cover raise SyntaxError( - f'Page name "{name}" is invalid. It must only contain letters, digits, dash (-), underscore (_), and forward slash (/) characters.'# noqa: E501 + f'Page name "{name}" is invalid. It must only contain letters, digits, dash (-), underscore (_), and forward slash (/) characters.' # noqa: E501 ) if name.startswith("/"): # pragma: no cover raise SyntaxError(f'Page name "{name}" cannot start with forward slash (/) character.') @@ -2255,7 +2255,7 @@ def _bind_var(self, var_name: str) -> str: self._bind(encoded_var_name, bind_locals[var_name]) else: _warn( - f"Variable '{var_name}' is not available in either the '{self._get_locals_context()}' or '__main__' modules."# noqa: E501 + f"Variable '{var_name}' is not available in either the '{self._get_locals_context()}' or '__main__' modules." # noqa: E501 ) return encoded_var_name @@ -2624,7 +2624,7 @@ def _get_webapp_path(self): _warn(f"Using webapp_path: '{_conf_webapp_path}'.") else: # pragma: no cover _warn( - f"webapp_path: '{_conf_webapp_path}' is not a valid directory. Falling back to '{_webapp_path}'."# noqa: E501 + f"webapp_path: '{_conf_webapp_path}' is not a valid directory. Falling back to '{_webapp_path}'." # noqa: E501 ) return _webapp_path @@ -2939,7 +2939,7 @@ def run( glob_ctx[lib_context[0]] = lib_context[1] elif lib_context: _warn( - f"Method {name}.on_init() should return a Tuple[str, Any] where the first element must be a valid Python identifier."# noqa: E501 + f"Method {name}.on_init() should return a Tuple[str, Any] where the first element must be a valid Python identifier." # noqa: E501 ) except Exception as e: # pragma: no cover if not self._call_on_exception(f"{name}.on_init", e):