From d56cf30ecb2d68651c75b454f0aeae74304285dd Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Fri, 16 Aug 2024 10:46:54 +0100 Subject: [PATCH] Fix ``sphinx.testing.path.path.write_bytes`` bytes type (#12790) --- sphinx/testing/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py index 3a9ee8ddb..49f0ffa60 100644 --- a/sphinx/testing/path.py +++ b/sphinx/testing/path.py @@ -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.