-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Pymongo's mypy tests pass with mypy==0.942 but fail with mypy==0.971 with this error:
test/test_bson.py: note: In member "assertInvalid" of class "TestBSON":
test/test_bson.py:120: error: Argument 2 to "assertRaises" of "TestCase" has incompatible type
"Callable[[Union[bytes, memoryview, mmap, array[Any]], Optional[CodecOptions[_DocumentType]]], _DocumentType]"; expected "Callable[..., object]"
[arg-type]
self.assertRaises(InvalidBSON, decode, data)
^
I believe this was a regression caused by the changes in #7012
Metadata
Metadata
Assignees
Labels
No labels