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 26e8a53 commit d79ef20Copy full SHA for d79ef20
mypyc/test-data/fixtures/ir.py
@@ -173,6 +173,8 @@ def __getitem__(self, i: slice) -> bytes: ...
173
def join(self, x: Iterable[object]) -> bytes: ...
174
def decode(self, x: str=..., y: str=...) -> str: ...
175
def __iter__(self) -> Iterator[int]: ...
176
+ def ljust(self, width: int, fillchar: bytes) -> bytes: ...
177
+ def rjust(self, width: int, fillchar: bytes) -> bytes: ...
178
179
class bytearray:
180
@overload
mypyc/test-data/run-bytes.test
@@ -376,6 +376,8 @@ class bytes:
376
pass
377
378
[case testBytesRjustLjust]
379
+from testutil import assertRaises
380
+
381
def rjust_bytes(b: bytes, width: int, fill: bytes = b' ') -> bytes:
382
return b.rjust(width, fill)
383
0 commit comments