Skip to content

Commit

Permalink
fix: type hint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Danthewaann committed Jan 8, 2024
1 parent ddcc048 commit 3404bf5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pyallel/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,10 @@ def return_code(self) -> int | None:
def from_command(cls, command: str) -> Process:
env = os.environ.copy()
if " :: " in command:
command_modes, args = command.split(" :: ")
command_modes = command_modes.split()
args = args.split()
_, _args = command.split(" :: ")
args = _args.split()
else:
args = command.split()
command_modes = ""

parsed_args: list[str] = []
for arg in args:
Expand Down

0 comments on commit 3404bf5

Please sign in to comment.