Skip to content

Commit cd13d7b

Browse files
committed
fix: remove redundant cast and unused imports in parser.py
1 parent 74ef505 commit cd13d7b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/shellflow/parser.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import shlex
77
import subprocess
88
import uuid
9-
from typing import Literal, cast
109

1110
from .constants import VALID_EXPORT_SOURCES
1211
from .exceptions import ParseError
@@ -838,7 +837,7 @@ def _validate_block_with_pydantic(block: Block, line_no: int) -> None:
838837
target=target,
839838
timeout=block.timeout_seconds,
840839
retry=block.retry_count,
841-
shell=cast("Literal['bash', 'zsh', 'sh']", block.shell if block.shell in ("bash", "zsh", "sh") else "bash"),
840+
shell=block.shell if block.shell in ("bash", "zsh", "sh") else "bash",
842841
)
843842

844843
# The validation happens during model construction

0 commit comments

Comments
 (0)