From afc644e143c697aefc006e7b94bc460e594fc588 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 8 Oct 2024 17:50:05 +0200 Subject: [PATCH] prepare for future mypy release and enable --local-partial-types now --- cwl_utils/utils.py | 2 +- mypy.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cwl_utils/utils.py b/cwl_utils/utils.py index fa335bd3..20115a4f 100644 --- a/cwl_utils/utils.py +++ b/cwl_utils/utils.py @@ -29,7 +29,7 @@ fast_yaml = YAML(typ="safe") -_USERNS = None +_USERNS: Optional[bool] = None def _is_github_symbolic_link(base_url: urllib.parse.ParseResult, contents: str) -> bool: diff --git a/mypy.ini b/mypy.ini index 27138ad2..55e24a73 100644 --- a/mypy.ini +++ b/mypy.ini @@ -4,5 +4,6 @@ show_column_numbers = true show_error_codes = true pretty = true strict = true +local_partial_types = true [mypy-ruamel.*] ignore_errors = True