Skip to content

Commit 2152b9d

Browse files
committed
chore: correct some typings
1 parent bb79ef6 commit 2152b9d

File tree

1 file changed

+3
-4
lines changed
  • packages/runner/src/robotcode/runner/cli/discover

1 file changed

+3
-4
lines changed

packages/runner/src/robotcode/runner/cli/discover/discover.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import io
21
import os
32
import re
43
import sys
@@ -126,14 +125,14 @@ def build_suite_directory(
126125

127126
old_get_file = FileReader._get_file
128127

129-
def get_file(self: FileReader, source: Union[str, Path, IOBase], accept_text: bool) -> Tuple[io.IOBase, bool]:
128+
def get_file(self: FileReader, source: Union[str, Path, IOBase], accept_text: bool) -> Any:
130129
path = self._get_path(source, accept_text)
131130
if path:
132131
if _stdin_data is not None and (data := _stdin_data.get(str(path))) is not None:
133132
if data is not None:
134-
return old_get_file(self, data, accept_text) # type: ignore
133+
return old_get_file(self, data, accept_text)
135134

136-
return old_get_file(self, source, accept_text) # type: ignore
135+
return old_get_file(self, source, accept_text)
137136

138137
FileReader._get_file = get_file
139138

0 commit comments

Comments
 (0)