Skip to content

Commit ef313dd

Browse files
committed
Fix type annotations on 3.8
1 parent b1a9482 commit ef313dd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

spin/cmds/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
from __future__ import (
2+
annotations, # noqa: F401 # TODO: remove once only >3.8 is supported
3+
)
4+
15
import os
26
import shlex
37
import subprocess
48
import sys
5-
from typing import Optional
69

710
import click
811

912

1013
def run(
1114
cmd: list[str],
12-
cwd: Optional[str] = None, # in 3.10 and up: str | None
15+
cwd: str | None = None, # in 3.10 and up: str | None
1316
replace: bool = False,
1417
sys_exit: bool = True,
1518
output: bool = True,

0 commit comments

Comments
 (0)