##// END OF EJS Templates
cmdutil: add a pytype annotation to help out some callsites...
Augie Fackler -
r44099:a58d2361 default
parent child Browse files
Show More
@@ -61,6 +61,15 from .utils import (
61 stringutil,
61 stringutil,
62 )
62 )
63
63
64 if not globals():
65 from typing import (
66 Any,
67 Dict,
68 )
69
70 for t in (Any, Dict):
71 assert t
72
64 stringio = util.stringio
73 stringio = util.stringio
65
74
66 # templates of common command options
75 # templates of common command options
@@ -3959,6 +3968,7 def abortgraft(ui, repo, graftstate):
3959
3968
3960
3969
3961 def readgraftstate(repo, graftstate):
3970 def readgraftstate(repo, graftstate):
3971 # type: (Any, statemod.cmdstate) -> Dict[bytes, Any]
3962 """read the graft state file and return a dict of the data stored in it"""
3972 """read the graft state file and return a dict of the data stored in it"""
3963 try:
3973 try:
3964 return graftstate.read()
3974 return graftstate.read()
General Comments 0
You need to be logged in to leave comments. Login now