You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When assert_called_with() is used for a mocked method we do a # type:ignore because of mypy error has no attribute "assert_called_with" [attr-defined]
Or worse, sometimes we do a # type:ignore on module level (top of the file)
Better solution would be to just ignore the attr-defined:
# mypy: disable-error-code=attr-defined
Hint:
Search for "assert_called_with(" and remove any # type:ignore (either at line or module level)
The text was updated successfully, but these errors were encountered:
When assert_called_with() is used for a mocked method we do a # type:ignore because of mypy error has no attribute "assert_called_with" [attr-defined]
Or worse, sometimes we do a # type:ignore on module level (top of the file)
Better solution would be to just ignore the attr-defined:
Hint:
Search for "assert_called_with(" and remove any # type:ignore (either at line or module level)
The text was updated successfully, but these errors were encountered: