diff mercurial/state.py @ 51284:f15cb5111a1e

pytype: move some type comment to proper annotation We support direct type annotations now, while pytype is starting to complains about them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Dec 2023 21:29:34 +0100
parents 9d3721552b6c
children f4733654f144
line wrap: on
line diff
--- a/mercurial/state.py	Wed Dec 20 20:13:22 2023 +0100
+++ b/mercurial/state.py	Tue Dec 19 21:29:34 2023 +0100
@@ -59,8 +59,7 @@
         self._repo = repo
         self.fname = fname
 
-    def read(self):
-        # type: () -> Dict[bytes, Any]
+    def read(self) -> Dict[bytes, Any]:
         """read the existing state file and return a dict of data stored"""
         return self._read()