Fix `sphinx.testing.path.path.write_bytes` bytes type (#12790)

This commit is contained in:
Adam Dangoor 2024-08-16 10:46:54 +01:00 committed by GitHub
parent 0530f9808b
commit d56cf30ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,7 +178,7 @@ class path(str):
with open(self, mode='rb') as f:
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.