We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740cf8d commit 960262cCopy full SHA for 960262c
mypyc/test-data/irbuild-bytes.test
@@ -234,11 +234,11 @@ def f(b: bytes) -> bytes:
234
return b.rjust(8, b'0')
235
[out]
236
def f(b):
237
- b :: bytes
238
- r0 :: bytes
+ b, r0 :: bytes
239
L0:
240
- r0 = b.rjust(8, b'0')
241
- return r0
+ r0 = b'_'
+ r1 = CPyBytes_Rjust(b, 20, r0)
+ return r1
242
243
[case testBytesLjustDefault]
244
def f(b: bytes) -> bytes:
@@ -256,11 +256,11 @@ def f(b: bytes) -> bytes:
256
return b.ljust(10, b'_')
257
258
259
260
261
262
- r0 = b.ljust(10, b'_')
263
+ r1 = CPyBytes_Ljust(b, 20, r0)
264
265
[case testBytesRjustNoPad]
266
0 commit comments