summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-01-02 00:01:14 +0000
committerGitHub <noreply@github.com>2023-01-02 00:01:14 +0000
commit4032070e8131f518bbb8a04e8d63c5af4df9b59d (patch)
tree47b14f58d5337448e8358029264ebcd6d1ae7351 /sphinx/util/osutil.py
parentede68fa423107fbab74d07b307d7dcb03c00dfbd (diff)
downloadsphinx-git-4032070e8131f518bbb8a04e8d63c5af4df9b59d.tar.gz
Run pyupgrade (#11070)
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index d495876cf..f6b13c899 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -196,7 +196,7 @@ class FileAvoidWrite:
with open(self._path, 'w', encoding='utf-8') as f:
f.write(buf)
- def __enter__(self) -> "FileAvoidWrite":
+ def __enter__(self) -> FileAvoidWrite:
return self
def __exit__(