diff --git a/flake8_no_implicit_concat/__init__.py b/flake8_no_implicit_concat/__init__.py index 7ae45aa..d9fedd5 100644 --- a/flake8_no_implicit_concat/__init__.py +++ b/flake8_no_implicit_concat/__init__.py @@ -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 diff --git a/setup.cfg b/setup.cfg index 33f2401..8cfb86f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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