Skip to content

Commit

Permalink
re-introduced type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
nfarabullini committed Feb 27, 2024
1 parent 6948956 commit 4303bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gt4py/eve/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def format_python_source(
) -> str:
"""Format Python source code using black formatter."""
python_versions = python_versions or {f"{sys.version_info.major}{sys.version_info.minor}"}
target_versions = set(black.TargetVersion[f"PY{v.replace('.', '')}"] for v in python_versions)
target_versions = set(black.TargetVersion[f"PY{v.replace('.', '')}"] for v in python_versions) # type: ignore[attr-defined] # .TargetVersion implicitly exported

formatted_source = black.format_str(
source,
Expand Down

0 comments on commit 4303bff

Please sign in to comment.