Skip to content

Commit 49d8955

Browse files
authored
docs: bump pyscript==2025.2.2 (#3797)
1 parent 7eb7025 commit 49d8955

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinxext/code_ref.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING, Literal, get_args
5+
from typing import TYPE_CHECKING, Literal, cast, get_args
66

77
from docutils import nodes
88
from docutils.parsers.rst import directives
@@ -42,7 +42,7 @@
4242
_Option: TypeAlias = Literal["output", "fold", "summary"]
4343

4444
_PYSCRIPT_URL_FMT = "https://pyscript.net/releases/{0}/core.js"
45-
_PYSCRIPT_VERSION = "2024.10.1"
45+
_PYSCRIPT_VERSION = "2025.2.2"
4646
_PYSCRIPT_URL = _PYSCRIPT_URL_FMT.format(_PYSCRIPT_VERSION)
4747

4848

@@ -52,7 +52,7 @@ def validate_output(output: Any) -> _OutputLong:
5252
msg = f":output: option must be one of {get_args(_OutputShort)!r}"
5353
raise TypeError(msg)
5454
else:
55-
short: _OutputShort = output
55+
short = cast("_OutputShort", output)
5656
return _OUTPUT_REMAP[short]
5757

5858

0 commit comments

Comments
 (0)