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
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("''", "'")
[project.optional-dependencies]
asyncio = ["greenlet>=1"]
mypy = [
- "mypy >= 1.20",
+ "mypy >= 2",
"types-greenlet >= 2",
]
mssql = ["pyodbc"]
[testenv:pep484]
deps=
greenlet >= 1
- mypy >= 1.17.0
+ mypy >= 2
types-greenlet
commands =
mypy {env:MYPY_COLOR} ./lib/sqlalchemy