File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import TYPE_CHECKING , Literal , get_args
5+ from typing import TYPE_CHECKING , Literal , cast , get_args
66
77from docutils import nodes
88from docutils .parsers .rst import directives
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
You can’t perform that action at this time.
0 commit comments