proton: Use None instead of False for default argument value.

This fixes type inference - tools no longer assume that there's a
possibility of the value ever being True.
This commit is contained in:
Arkadiusz Hiler 2024-07-26 10:05:48 +03:00
parent 9e4a12cbaa
commit 5b99c12aed

2
proton
View File

@ -141,7 +141,7 @@ def merge_user_dir(src, dst):
extant_dirs += dst_dir
def try_copy(src, dst, prefix=None, add_write_perm=True, copy_metadata=False, optional=False,
follow_symlinks=True, track_file=False, link_debug=False):
follow_symlinks=True, track_file=None, link_debug=False):
try:
if prefix is not None:
dst = os.path.join(prefix, dst)