Skip to content

Commit cc6988e

Browse files
committed
cli: fix typing of _get_script_path return
1 parent d0fd538 commit cc6988e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pybricksdev/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import validators
1515

1616
from abc import ABC, abstractmethod
17-
from os import path
17+
from os import PathLike, path
1818

1919
import argcomplete
2020
from argcomplete.completers import FilesCompleter
@@ -54,7 +54,7 @@ async def run(self, args: argparse.Namespace):
5454
pass
5555

5656

57-
def _get_script_path(file: TextIO) -> ContextManager:
57+
def _get_script_path(file: TextIO) -> ContextManager[PathLike]:
5858
"""
5959
Gets the path to a script on the file system.
6060

0 commit comments

Comments
 (0)