Skip to content

Commit a25cf2f

Browse files
authored
Python3.8のサポートを終了します。 (#691)
* Python3.8のサポートを終了する * update ruff * update ruff
1 parent 57af8a3 commit a25cf2f

File tree

4 files changed

+501
-551
lines changed

4 files changed

+501
-551
lines changed

annofabapi/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def load_json(self) -> Any: # noqa: ANN401
240240
def open_outer_file(self, data_uri: str): # noqa: ANN201
241241
outer_file_path = _trim_extension(self.json_file_path) + "/" + data_uri
242242
try:
243-
return open(outer_file_path, mode="rb") # noqa: SIM115, pylint: disable=consider-using-with
243+
return open(outer_file_path, mode="rb")
244244
except FileNotFoundError as e:
245245
raise AnnotationOuterFileNotFoundError(str(outer_file_path)) from e
246246

@@ -306,7 +306,7 @@ def load_json(self) -> Any: # noqa: ANN401
306306
def open_outer_file(self, data_uri: str): # noqa: ANN201
307307
outer_file_path = _trim_extension(self.json_file_path) + "/" + data_uri
308308
try:
309-
return open(outer_file_path, mode="rb") # noqa: SIM115, pylint: disable=consider-using-with
309+
return open(outer_file_path, mode="rb")
310310
except FileNotFoundError as e:
311311
raise AnnotationOuterFileNotFoundError(str(outer_file_path)) from e
312312

0 commit comments

Comments
 (0)