From f9c595423c71863850f554ccb22e423041f8242f Mon Sep 17 00:00:00 2001 From: micha91 Date: Fri, 10 May 2024 10:47:11 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernst Würger --- open_api_client_build/build_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open_api_client_build/build_client.py b/open_api_client_build/build_client.py index 36fc0c7d..ae75f7d7 100644 --- a/open_api_client_build/build_client.py +++ b/open_api_client_build/build_client.py @@ -20,7 +20,7 @@ error_code_pattern = re.compile("[4,5][0-9]{2}") -def fix_spec(src, path): +def fix_spec(src: str, path: str | os.PathLike): """Fix errors in the specification.""" if src == "path": with open(path, "r") as f: