Skip to content

Commit fcdc2d9

Browse files
authored
fix: inspect-ai requires Python >= 3.10 (#2110)
1 parent 2dda3e9 commit fcdc2d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ add-test = [
128128
"chatlas[anthropic,openai]",
129129
"openai>=1.104.1",
130130
"anthropic>=0.62.0",
131-
"inspect-ai>=0.3.129",
131+
"inspect-ai>=0.3.129;python_version>='3.10'",
132132
"pytest-timeout",
133133
"pytest>=6.2.4",
134134
"pytest-playwright>=0.5.2",

shiny/_docstring.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def __init__(
228228
dir: str,
229229
type: Optional[Literal["core", "express"]] = None,
230230
) -> None:
231+
super().__init__(type, file_names, dir)
231232
self.type = type or os.environ.get("SHINY_MODE", "core")
232233
self.file_names = [file_names] if isinstance(file_names, str) else file_names
233234
self.dir = dir
@@ -250,8 +251,9 @@ def __init__(
250251
self,
251252
file_names: list[str] | str,
252253
dir: str,
254+
type: Literal["express"] = "express",
253255
) -> None:
254-
super().__init__(file_names, dir, "express")
256+
super().__init__(file_names, dir, type)
255257

256258

257259
def app_choose_core_or_express(

shiny/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class NotifyException(Exception):
180180
close: bool
181181

182182
def __init__(self, message: str, sanitize: bool = True, close: bool = False):
183-
super().__init__(message)
183+
super().__init__(message, sanitize, close)
184184
self.sanitize = sanitize
185185
self.close = close
186186

0 commit comments

Comments
 (0)