Skip to content

Commit

Permalink
Fix mypy config
Browse files Browse the repository at this point in the history
* Remove some mypy ignore comments

* Fix mypy config
  • Loading branch information
10sr authored Oct 5, 2024
1 parent 72f4a8e commit 928ffb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake8_no_implicit_concat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def _is_ok_lt_py312(a: tokenize.TokenInfo, b: tokenize.TokenInfo) -> bool:
def _is_ok(a: tokenize.TokenInfo, b: tokenize.TokenInfo) -> bool:
if a.type == b.type == tokenize.STRING:
return False
if a.type == tokenize.STRING and b.type == tokenize.FSTRING_START: # type: ignore[attr-defined]
if a.type == tokenize.STRING and b.type == tokenize.FSTRING_START:
return False
if a.type == tokenize.FSTRING_END and b.type == tokenize.STRING: # type: ignore[attr-defined]
if a.type == tokenize.FSTRING_END and b.type == tokenize.STRING:
return False
if a.type == tokenize.FSTRING_END and b.type == tokenize.FSTRING_START: # type: ignore[attr-defined]
if a.type == tokenize.FSTRING_END and b.type == tokenize.FSTRING_START:
return False
return True

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ docstring_style = sphinx
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version = 3.10
python_version = 3.12
platform = linux

# show error messages from unrelated files
Expand Down

0 comments on commit 928ffb5

Please sign in to comment.