Skip to content

Commit d2cc421

Browse files
committed
fix(debugger): fix type annotations for python 3.8
closes #255
1 parent 52c7d4c commit d2cc421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/debugger/src/robotcode/debugger/debugger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ def get_threads(self) -> List[Thread]:
11641164
WINDOW_PATH_REGEX: ClassVar = re.compile(r"^(([a-z]:[\\/])|(\\\\)).*$", re.RegexFlag.IGNORECASE)
11651165

11661166
@classmethod
1167-
def is_windows_path(cls, path: Union[os.PathLike[str], str]) -> bool:
1167+
def is_windows_path(cls, path: Union["os.PathLike[str]", str]) -> bool:
11681168
return bool(cls.WINDOW_PATH_REGEX.fullmatch(str(path)))
11691169

11701170
@staticmethod
@@ -1174,7 +1174,7 @@ def relative_to(path: pathlib.PurePath, *other: pathlib.PurePath) -> Optional[pa
11741174
except ValueError:
11751175
return None
11761176

1177-
def map_path_to_client(self, path: Union[os.PathLike[str], str]) -> pathlib.PurePath:
1177+
def map_path_to_client(self, path: Union["os.PathLike[str]", str]) -> pathlib.PurePath:
11781178
if not isinstance(path, PurePath):
11791179
path = PurePath(path)
11801180

0 commit comments

Comments
 (0)