# HG changeset patch # User Matt Harbison # Date 2023-01-05 22:21:09 # 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 --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -1436,7 +1436,7 @@ def outgoinghook(ui, repo, other, opts, def addfunc(fn, lfhash): if fn not in toupload: - toupload[fn] = [] + toupload[fn] = [] # pytype: disable=unsupported-operands toupload[fn].append(lfhash) lfhashes.add(lfhash)