##// END OF EJS Templates
state: add a pytype annotation...
Augie Fackler -
r44101:127d4646 default
parent child Browse files
Show More
@@ -27,6 +27,15 b' from . import ('
27 )
27 )
28 from .utils import cborutil
28 from .utils import cborutil
29
29
30 if not globals():
31 from typing import (
32 Any,
33 Dict,
34 )
35
36 for t in (Any, Dict):
37 assert t
38
30
39
31 class cmdstate(object):
40 class cmdstate(object):
32 """a wrapper class to store the state of commands like `rebase`, `graft`,
41 """a wrapper class to store the state of commands like `rebase`, `graft`,
@@ -50,6 +59,7 b' class cmdstate(object):'
50 self.fname = fname
59 self.fname = fname
51
60
52 def read(self):
61 def read(self):
62 # type: () -> Dict[bytes, Any]
53 """read the existing state file and return a dict of data stored"""
63 """read the existing state file and return a dict of data stored"""
54 return self._read()
64 return self._read()
55
65
General Comments 0
You need to be logged in to leave comments. Login now