# HG changeset patch # User Matt Harbison # Date 1672957269 18000 # Node ID cb3918e5bc773f9ec06e3f97fe9b387c7da5f490 # Parent e63ab79b2fa1bf689c140c3f29461cd39976f48d typing: disable [unsupported-operands] warning in the largefiles outgoing hook For some reason, pytype thinks `toupload` is a set: No attribute '__setitem__' on Set[nothing] (It actually is a set in the subsequent `else` branch, but I'm not interested in trying to rewrite this to be consistent.) diff -r e63ab79b2fa1 -r cb3918e5bc77 hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Thu Jan 05 17:15:27 2023 -0500 +++ b/hgext/largefiles/overrides.py Thu Jan 05 17:21:09 2023 -0500 @@ -1436,7 +1436,7 @@ def addfunc(fn, lfhash): if fn not in toupload: - toupload[fn] = [] + toupload[fn] = [] # pytype: disable=unsupported-operands toupload[fn].append(lfhash) lfhashes.add(lfhash)