diff mercurial/upgrade.py @ 48472:a4d8de93023c

pytype: stop excluding upgrade.py The sole failure here was this, which is fixed by simply creating a set like the caller, instead of a dict: File "/mnt/c/Users/Matt/hg/mercurial/upgrade.py", line 73, in upgraderepo: No attribute 'discard' on Dict[nothing, nothing] [attribute-error] In Union[Any, Dict[nothing, nothing]] Differential Revision: https://phab.mercurial-scm.org/D11911
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 12 Dec 2021 20:01:05 -0500
parents 9dd151a39950
children 17eaeb06562c
line wrap: on
line diff
--- a/mercurial/upgrade.py	Tue Dec 14 20:36:36 2021 +0100
+++ b/mercurial/upgrade.py	Sun Dec 12 20:01:05 2021 -0500
@@ -42,7 +42,7 @@
 ):
     """Upgrade a repository in place."""
     if optimize is None:
-        optimize = {}
+        optimize = set()
     repo = repo.unfiltered()
 
     specified_revlogs = {}