##// END OF EJS Templates
typing: convert an annotation to an assertion in commands.py...
Matt Harbison -
r48563:76dccbbe stable
parent child Browse files
Show More
@@ -75,12 +75,6 b' from .utils import ('
75 75 urlutil,
76 76 )
77 77
78 if pycompat.TYPE_CHECKING:
79 from typing import (
80 List,
81 )
82
83
84 78 table = {}
85 79 table.update(debugcommandsmod.command._table)
86 80
@@ -3341,7 +3335,8 b' def _dograft(ui, repo, *revs, **opts):'
3341 3335 )
3342 3336 # checking that newnodes exist because old state files won't have it
3343 3337 elif statedata.get(b'newnodes') is not None:
3344 nn = statedata[b'newnodes'] # type: List[bytes]
3338 nn = statedata[b'newnodes']
3339 assert isinstance(nn, list) # list of bytes
3345 3340 nn.append(node)
3346 3341
3347 3342 # remove state when we complete successfully
General Comments 0
You need to be logged in to leave comments. Login now