mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix `sphinx.testing.path.path.write_bytes
` bytes type (#12790)
This commit is contained in:
parent
0530f9808b
commit
d56cf30ecb
@ -178,7 +178,7 @@ class path(str):
|
|||||||
with open(self, mode='rb') as f:
|
with open(self, mode='rb') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
def write_bytes(self, bytes: str, append: bool = False) -> None:
|
def write_bytes(self, bytes: bytes, append: bool = False) -> None:
|
||||||
"""
|
"""
|
||||||
Writes the given `bytes` to the file.
|
Writes the given `bytes` to the file.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user