mypy just went to 2.0.
and there seems to be...
exactly one "type: ignore" to remove and...that's it?
well OK!
Change-Id: I29f919641acc0e970b566c850063db7ecad70ed9
(cherry picked from commit
dcb36d73bbf6a8e6e780aae3c5ae40e8d03bec3a)
if "\\" in raw_text:
raw_text = re.sub(
_control_char_regexp,
- lambda s: _control_char_map[s[0]], # type: ignore[index]
+ lambda s: _control_char_map[s[0]], # type: ignore[unused-ignore,index] # noqa: E501
raw_text,
)
return raw_text.replace("''", "'")
mypy = [
{include-group = "tests-greenlet"},
- "mypy>=1.20.0",
+ "mypy>=2",
"nox", # because we check noxfile.py
"pytest>8,<10", # alembic/testing imports pytest
"types-greenlet",
deps=
greenlet >= 1
importlib_metadata; python_version < '3.8'
- mypy >= 1.19.0
+ mypy >= 2
types-greenlet
commands =
mypy {env:MYPY_COLOR} ./lib/sqlalchemy