Skip to content

Commit f12ee98

Browse files
rotujacobperron
authored andcommitted
Replace TypeVar with Optional (#224)
1 parent af5b886 commit f12ee98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

colcon_core/subprocess.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@
1919
import sys
2020
from typing import Callable
2121
from typing import Mapping
22+
from typing import Optional
2223
from typing import Sequence
23-
from typing import TypeVar
2424

2525
from colcon_core.logging import colcon_logger
2626

2727
SIGINT_RESULT = 'SIGINT'
2828

2929
logger = colcon_logger.getChild(__name__)
3030

31-
UsePtyType = TypeVar('UsePtyType', None, bool)
32-
3331

3432
def new_event_loop():
3533
"""
@@ -52,7 +50,7 @@ async def run(
5250
cwd: str = None,
5351
env: Mapping[str, str] = None,
5452
shell: bool = False,
55-
use_pty: UsePtyType = None
53+
use_pty: Optional[bool] = None
5654
) -> subprocess.CompletedProcess:
5755
"""
5856
Run the command described by args.

0 commit comments

Comments
 (0)