Skip to content

Commit 153b4dd

Browse files
committed
Fix type hint syntax
1 parent 59bdb7d commit 153b4dd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

command_runner/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
__author__ = "Orsiris de Jong"
2222
__copyright__ = "Copyright (C) 2015-2025 Orsiris de Jong for NetInvent"
2323
__licence__ = "BSD 3 Clause"
24-
__version__ = "1.7.3"
25-
__build__ = "2025041801"
24+
__version__ = "1.7.4"
25+
__build__ = "2025052301"
2626
__compat__ = "python2.7+"
2727

2828
import io
@@ -312,12 +312,13 @@ def wrapper(*args, **kwargs):
312312
PIPE = subprocess.PIPE
313313

314314

315-
def _validate_process_priority(priority):
315+
def _validate_process_priority(
316+
priority # type: Union[int, str]
317+
):
318+
# type: (...) -> int
316319
"""
317320
Check if priority int is valid
318321
"""
319-
320-
# type: Union[int, bool] -> int
321322
def _raise_prio_error(priority, reason):
322323
raise ValueError(
323324
"Priority not valid ({}): {}. Please use one of {}".format(

0 commit comments

Comments
 (0)