Skip to content

Commit 92f5eec

Browse files
authored
Fix for new Mypy (#1111)
1 parent d91775a commit 92f5eec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tests-no-zope = [
4343
"pytest-xdist[psutil]",
4444
# Since the mypy error messages keep changing, we have to keep updating this
4545
# pin.
46-
'mypy>=0.991,<1.1.1; python_implementation == "CPython"',
46+
'mypy>=1.1.1; python_implementation == "CPython"',
4747
'pytest-mypy-plugins; python_implementation == "CPython" and python_version<"3.11"',
4848
]
4949
tests = ["attrs[tests-no-zope]", "zope.interface"]

tests/test_mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@
177177
main: |
178178
import attr
179179
x = True
180-
@attr.s(cmp=x) # E: "cmp" argument must be True or False. [misc]
180+
@attr.s(cmp=x) # E: "cmp" argument must be a True, False, or None literal [literal-required]
181181
class A:
182-
a = attr.ib(init=x) # E: "init" argument must be True or False. [misc]
182+
a = attr.ib(init=x) # E: "init" argument must be a True or False literal [literal-required]
183183
184184
- case: testAttrsInitFalse
185185
main: |

0 commit comments

Comments
 (0)