Mercurial > hg
changeset 49854:cb3918e5bc77
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.)
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 05 Jan 2023 17:21:09 -0500 |
parents | e63ab79b2fa1 |
children | 36afe74e4439 |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)