From 0ed64ec19585d3de09d5d85ea8db565b6043b02d Mon Sep 17 00:00:00 2001 From: vladmandic Date: Wed, 11 Feb 2026 11:34:40 +0100 Subject: [PATCH] cleanup Signed-off-by: vladmandic --- modules/ui.py | 2 +- pyproject.toml | 1 + webui.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index a94c9e2d3..3fe74b32d 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -65,7 +65,7 @@ def setup_progressbar(*args, **kwargs): # pylint: disable=unused-argument pass -def create_ui(startup_timer = None): +def create_ui(startup_timer = None) -> gr.Blocks: global interfaces # pylint: disable=global-statement if startup_timer is None: timer.startup = timer.Timer() diff --git a/pyproject.toml b/pyproject.toml index c0e08355a..2e08e03ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -364,3 +364,4 @@ variables.redefining-builtins-modules=["six.moves","past.builtins","future.built [tool.pyright] pythonVersion = "3.10" pythonPlatform = "All" +typeCheckingMode = "off" diff --git a/webui.py b/webui.py index 1347b3387..399e0ff4e 100644 --- a/webui.py +++ b/webui.py @@ -356,7 +356,7 @@ def start_ui(): timer.startup.record("app-started") time_sorted = sorted(modules.scripts_manager.time_setup.items(), key=lambda x: x[1], reverse=True) - time_script = [f'{k}:{round(v,3)}' for (k,v) in time_sorted if v > 0.03] + time_script = [f'{k}:{round(v,3)}' for (k,v) in time_sorted if v > 0.05] time_total = sum(modules.scripts_manager.time_setup.values()) shared.log.debug(f'Scripts setup: time={time_total:.3f} {time_script}') time_component = [f'{k}:{round(v,3)}' for (k,v) in modules.scripts_manager.time_component.items() if v > 0.005]