From 19e4a0cc7e733142782ca7ee45f61db816ecf1d9 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 3 Nov 2025 16:05:59 -0500 Subject: [PATCH 1/2] chore: inspect-ai requires python >= 3.10 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3c11464c3..7d2759e9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,7 +128,7 @@ add-test = [ "chatlas[anthropic,openai]", "openai>=1.104.1", "anthropic>=0.62.0", - "inspect-ai>=0.3.129", + "inspect-ai>=0.3.129;python_version>='3.10'", "pytest-timeout", "pytest>=6.2.4", "pytest-playwright>=0.5.2", From a685f1614b101a714026fba994c9b19a9b687f0a Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 3 Nov 2025 16:13:29 -0500 Subject: [PATCH 2/2] chore: Make flake8 happy again --- shiny/_docstring.py | 4 +++- shiny/types.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shiny/_docstring.py b/shiny/_docstring.py index 92f1c8fa7..93f7fd747 100644 --- a/shiny/_docstring.py +++ b/shiny/_docstring.py @@ -228,6 +228,7 @@ def __init__( dir: str, type: Optional[Literal["core", "express"]] = None, ) -> None: + super().__init__(type, file_names, dir) self.type = type or os.environ.get("SHINY_MODE", "core") self.file_names = [file_names] if isinstance(file_names, str) else file_names self.dir = dir @@ -250,8 +251,9 @@ def __init__( self, file_names: list[str] | str, dir: str, + type: Literal["express"] = "express", ) -> None: - super().__init__(file_names, dir, "express") + super().__init__(file_names, dir, type) def app_choose_core_or_express( diff --git a/shiny/types.py b/shiny/types.py index c789f9132..61415cf20 100644 --- a/shiny/types.py +++ b/shiny/types.py @@ -180,7 +180,7 @@ class NotifyException(Exception): close: bool def __init__(self, message: str, sanitize: bool = True, close: bool = False): - super().__init__(message) + super().__init__(message, sanitize, close) self.sanitize = sanitize self.close = close