Skip to content

Commit 133011b

Browse files
committed
Add static typing for utils.popenReadLines
1 parent 3b17dab commit 133011b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/diffuse/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,12 @@ def _strip_eols(ss: List[str]) -> List[str]:
234234

235235

236236
# use popen to read the output of a command
237-
def popenReadLines(cwd, cmd, prefs, bash_pref, success_results=None):
237+
def popenReadLines(
238+
cwd: str,
239+
cmd: List[str],
240+
prefs: Preferences,
241+
bash_pref: str,
242+
success_results: List[int] = None) -> List[str]:
238243
return _strip_eols(splitlines(popenRead(
239244
cwd, cmd, prefs, bash_pref, success_results).decode('utf-8', errors='ignore')))
240245

0 commit comments

Comments
 (0)