summaryrefslogtreecommitdiff
path: root/rtemsspec
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:13:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-11-21 11:15:24 +0100
commit4eb1bcf15acaa2592c1cdcbc11ccca2620d20c69 (patch)
tree6149536d18715bccfa27fd79ceb97a25acf919e9 /rtemsspec
parent3fc5156844f626c33be7931deb4ef73dba13275b (diff)
util: Improve typing
Diffstat (limited to 'rtemsspec')
-rw-r--r--rtemsspec/util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rtemsspec/util.py b/rtemsspec/util.py
index 65db817c..eaea0fad 100644
--- a/rtemsspec/util.py
+++ b/rtemsspec/util.py
@@ -29,9 +29,10 @@ import base64
import binascii
import logging
import os
+from pathlib import Path
import shutil
import subprocess
-from typing import Any, List, Optional
+from typing import Any, List, Optional, Union
import yaml
@@ -87,7 +88,7 @@ def load_config(config_filename: str) -> Any:
def run_command(args: List[str],
- cwd: str = ".",
+ cwd: Union[str, Path] = ".",
stdout: Optional[List[str]] = None,
env=None) -> int:
"""