Skip to content

Commit d56cf30

Browse files
Fix sphinx.testing.path.path.write_bytes bytes type (#12790)
1 parent 0530f98 commit d56cf30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/testing/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def read_bytes(self) -> builtins.bytes:
178178
with open(self, mode='rb') as f:
179179
return f.read()
180180

181-
def write_bytes(self, bytes: str, append: bool = False) -> None:
181+
def write_bytes(self, bytes: bytes, append: bool = False) -> None:
182182
"""
183183
Writes the given `bytes` to the file.
184184

0 commit comments

Comments
 (0)