Skip to content

Commit 078ebb7

Browse files
committed
! squash more mypy
1 parent 8ed52f9 commit 078ebb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvcs/_internal/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def run(
178178
shell: bool = False,
179179
cwd: Optional[StrOrBytesPath] = None,
180180
env: Optional[_ENV] = None,
181-
universal_newlines: Optional[bool] = None,
181+
universal_newlines: bool = False,
182182
startupinfo: Optional[Any] = None,
183183
creationflags: int = 0,
184184
restore_signals: bool = True,
@@ -262,15 +262,15 @@ def progress_cb(output, timestamp):
262262
umask=umask,
263263
)
264264

265-
all_output = []
265+
all_output: list[str] = []
266266
code = None
267267
line = None
268268
while code is None:
269269
code = proc.poll()
270270

271271
# output = console_to_str(proc.stdout.readline())
272272
# all_output.append(output)
273-
if callback and callable(callback):
273+
if callback and callable(callback) and proc.stderr is not None:
274274
line = console_to_str(proc.stderr.read(128))
275275
if line:
276276
callback(output=line, timestamp=datetime.datetime.now())

0 commit comments

Comments
 (0)