Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some mypy ignore comments #90

Merged
merged 2 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading