nanonyme commented on code in PR #1793:
URL: https://github.com/apache/buildstream/pull/1793#discussion_r1038788578
##########
src/buildstream/utils.py:
##########
@@ -359,6 +359,18 @@ def sha256sum(filename: str) -> str:
return h.hexdigest()
+try:
+ os.copy_file_range # type: ignore[attr-defined] Requires Python 3.8 or
newer
+except AttributeError:
+ _copy_file = lambda src, dest: shutil.copyfile(src, dest)
Review Comment:
Mypy complained the two functions have different amount of parameters.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]