##// END OF EJS Templates
typing: fix directives mangled by black...
Matt Harbison -
r47545:70f8c648 stable
parent child Browse files
Show More
@@ -1162,9 +1162,10 b' class cgpacker(object):'
1162 1162 def makelookupmflinknode(tree, nodes):
1163 1163 if fastpathlinkrev:
1164 1164 assert not tree
1165 return (
1166 manifests.__getitem__
1167 ) # pytype: disable=unsupported-operands
1165
1166 # pytype: disable=unsupported-operands
1167 return manifests.__getitem__
1168 # pytype: enable=unsupported-operands
1168 1169
1169 1170 def lookupmflinknode(x):
1170 1171 """Callback for looking up the linknode for manifests.
@@ -168,9 +168,9 b' def parsedag(desc):'
168 168 if not desc:
169 169 return
170 170
171 wordchars = pycompat.bytestr(
172 string.ascii_letters + string.digits
173 ) # pytype: disable=wrong-arg-types
171 # pytype: disable=wrong-arg-types
172 wordchars = pycompat.bytestr(string.ascii_letters + string.digits)
173 # pytype: enable=wrong-arg-types
174 174
175 175 labels = {}
176 176 p1 = -1
@@ -179,9 +179,9 b' def parsedag(desc):'
179 179 def resolve(ref):
180 180 if not ref:
181 181 return p1
182 elif ref[0] in pycompat.bytestr(
183 string.digits
184 ): # pytype: disable=wrong-arg-types
182 # pytype: disable=wrong-arg-types
183 elif ref[0] in pycompat.bytestr(string.digits):
184 # pytype: enable=wrong-arg-types
185 185 return r - int(ref)
186 186 else:
187 187 return labels[ref]
@@ -215,9 +215,9 b' def parsedag(desc):'
215 215
216 216 c = nextch()
217 217 while c != b'\0':
218 while c in pycompat.bytestr(
219 string.whitespace
220 ): # pytype: disable=wrong-arg-types
218 # pytype: disable=wrong-arg-types
219 while c in pycompat.bytestr(string.whitespace):
220 # pytype: enable=wrong-arg-types
221 221 c = nextch()
222 222 if c == b'.':
223 223 yield b'n', (r, [p1])
@@ -225,9 +225,9 b' def parsedag(desc):'
225 225 r += 1
226 226 c = nextch()
227 227 elif c == b'+':
228 c, digs = nextrun(
229 nextch(), pycompat.bytestr(string.digits)
230 ) # pytype: disable=wrong-arg-types
228 # pytype: disable=wrong-arg-types
229 c, digs = nextrun(nextch(), pycompat.bytestr(string.digits))
230 # pytype: enable=wrong-arg-types
231 231 n = int(digs)
232 232 for i in pycompat.xrange(0, n):
233 233 yield b'n', (r, [p1])
General Comments 0
You need to be logged in to leave comments. Login now