From e9fb70031f671c81a2cbe28f721e9430bd26b9c8 Mon Sep 17 00:00:00 2001 From: jens Date: Mon, 13 May 2024 11:45:08 +0200 Subject: [PATCH] update pyright --- requirements.txt | 2 +- unix/.config/lldbdash/dashboard/dashboard.py | 2 +- unix/.local/bin/install-ccache | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index bf0b56d..ddd1e4b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ black==24.3.0 -pyright==1.1.359 +pyright==1.1.362 isort==5.13.2 diff --git a/unix/.config/lldbdash/dashboard/dashboard.py b/unix/.config/lldbdash/dashboard/dashboard.py index edf166d..26c76a1 100644 --- a/unix/.config/lldbdash/dashboard/dashboard.py +++ b/unix/.config/lldbdash/dashboard/dashboard.py @@ -89,7 +89,7 @@ def print_divider(self, size: "terminal_size", module: "Module", out: Output): def apply_config(self): path = pathlib.Path.cwd() / Dashboard.settings["config-file"].value - if path.is_file() and Dashboard.settings["auto-apply-config"].value: + if Dashboard.settings["auto-apply-config"].value and path.is_file(): config_modified_time = path.stat().st_mtime if config_modified_time > self.config_modified_time: self.config_modified_time = config_modified_time diff --git a/unix/.local/bin/install-ccache b/unix/.local/bin/install-ccache index d2075a7..10d313f 100755 --- a/unix/.local/bin/install-ccache +++ b/unix/.local/bin/install-ccache @@ -12,8 +12,8 @@ __usage() { # https://manpages.debian.org/coreutils/cat cat < [options] -Options: [defaults in brackets after descriptions] - --help|-h|-? print this message +Options: [default value in bracket after description] + --help|-h|-? print this message and exit --prefix directory in which to install [$HOME/.local/bin] EOF