typeshed
typeshed copied to clipboard
Make unittest.patch.* methods static
Closes: #7542
Diff from mypy_primer, showing the effect of this PR on open source code:
urllib3 (https://github.com/urllib3/urllib3)
+ test/test_queue_monkeypatch.py:25: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[BadError]" [call-overload]
+ test/test_queue_monkeypatch.py:25: note: Possible overload variants:
+ test/test_queue_monkeypatch.py:25: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_queue_monkeypatch.py:25: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_response.py:960: error: No overload variant of "object" of "_patcher" matches argument types "BytesIO", "str" [call-overload]
+ test/test_response.py:960: note: Possible overload variants:
+ test/test_response.py:960: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_response.py:960: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:241: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:241: note: Possible overload variants:
+ test/test_connectionpool.py:241: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:241: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:242: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:242: note: Possible overload variants:
+ test/test_connectionpool.py:242: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:242: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:265: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:265: note: Possible overload variants:
+ test/test_connectionpool.py:265: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:265: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:266: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:266: note: Possible overload variants:
+ test/test_connectionpool.py:266: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:266: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:279: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:279: note: Possible overload variants:
+ test/test_connectionpool.py:279: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:279: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:325: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "BaseException" [call-overload]
+ test/test_connectionpool.py:325: note: Possible overload variants:
+ test/test_connectionpool.py:325: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:325: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:342: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "HTTPException" [call-overload]
+ test/test_connectionpool.py:342: note: Possible overload variants:
+ test/test_connectionpool.py:342: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:342: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:352: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "EmptyPoolError" [call-overload]
+ test/test_connectionpool.py:352: note: Possible overload variants:
+ test/test_connectionpool.py:352: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:352: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:355: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "AssertionError" [call-overload]
+ test/test_connectionpool.py:355: note: Possible overload variants:
+ test/test_connectionpool.py:355: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:355: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:477: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "Callable[[VarArg(Any), KwArg(Any)], None]" [call-overload]
+ test/test_connectionpool.py:477: note: Possible overload variants:
+ test/test_connectionpool.py:477: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:477: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:527: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "_raise_once_make_request_function" [call-overload]
+ test/test_connectionpool.py:527: note: Possible overload variants:
+ test/test_connectionpool.py:527: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:527: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:556: error: No overload variant of "object" of "_patcher" matches argument types "Type[Timeout]", "str", "int" [call-overload]
+ test/test_connectionpool.py:556: note: Possible overload variants:
+ test/test_connectionpool.py:556: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:556: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_ssltransport.py:562: error: No overload variant of "object" of "_patcher" matches argument types "SSLTransport", "str" [call-overload]
+ test/test_ssltransport.py:562: note: Possible overload variants:
+ test/test_ssltransport.py:562: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_ssltransport.py:562: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_socketlevel.py:1934: error: No overload variant of "object" of "_patcher" matches argument types "Logger", "str" [call-overload]
+ test/with_dummyserver/test_socketlevel.py:1934: note: Possible overload variants:
+ test/with_dummyserver/test_socketlevel.py:1934: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_socketlevel.py:1934: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:395: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_connectionpool.py:395: note: Possible overload variants:
+ test/with_dummyserver/test_connectionpool.py:395: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_connectionpool.py:395: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:408: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_connectionpool.py:408: note: Possible overload variants:
+ test/with_dummyserver/test_connectionpool.py:408: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_connectionpool.py:408: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_https.py:637: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_https.py:637: note: Possible overload variants:
+ test/with_dummyserver/test_https.py:637: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_https.py:637: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
zulip (https://github.com/zulip/zulip)
+ zerver/tests/test_queue_worker.py:77: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Callable[[VarArg(Any), KwArg(Any)], FakeClient]" [call-overload]
+ zerver/tests/test_queue_worker.py:77: note: Possible overload variants:
+ zerver/tests/test_queue_worker.py:77: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_queue_worker.py:77: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:79: error: No overload variant of "object" of "_patcher" matches argument types "GenericOutgoingWebhookService", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:79: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:79: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:79: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:94: error: No overload variant of "object" of "_patcher" matches argument types "OutgoingWebhookServiceInterface", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:94: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:94: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:94: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:109: error: No overload variant of "object" of "_patcher" matches argument types "GenericOutgoingWebhookService", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:109: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:109: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:109: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:139: error: No overload variant of "object" of "_patcher" matches argument types "GenericOutgoingWebhookService", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:139: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:139: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:139: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:171: error: No overload variant of "object" of "_patcher" matches argument types "Session", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:171: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:171: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:171: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:198: error: No overload variant of "object" of "_patcher" matches argument types "GenericOutgoingWebhookService", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:198: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:198: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:198: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_system.py:231: error: No overload variant of "object" of "_patcher" matches argument types "GenericOutgoingWebhookService", "str" [call-overload]
+ zerver/tests/test_outgoing_webhook_system.py:231: note: Possible overload variants:
+ zerver/tests/test_outgoing_webhook_system.py:231: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_outgoing_webhook_system.py:231: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_outgoing_webhook_interfaces.py:112: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:113: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:114: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:204: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:205: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:206: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_outgoing_webhook_interfaces.py:230: error: "str" has no attribute "post" [attr-defined]
+ zerver/tests/test_auth_backends.py:648: error: No overload variant of "object" of "_patcher" matches argument types "Type[RateLimitedAuthenticationByUsername]", "str", "Callable[[RateLimitedAuthenticationByUsername], str]" [call-overload]
+ zerver/tests/test_auth_backends.py:648: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:648: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:648: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_auth_backends.py:2378: error: No overload variant of "object" of "_patcher" matches argument types "Type[SAMLAuthBackend]", "str", "None" [call-overload]
+ zerver/tests/test_auth_backends.py:2378: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:2378: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:2378: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_auth_backends.py:2430: error: No overload variant of "object" of "_patcher" matches argument types "Type[SAMLDocument]", "str", "str" [call-overload]
+ zerver/tests/test_auth_backends.py:2430: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:2430: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:2430: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_auth_backends.py:3341: error: No overload variant of "object" of "_patcher" matches argument types "Type[GenericOpenIdConnectBackend]", "str", "Dict[<nothing>, <nothing>]" [call-overload]
+ zerver/tests/test_auth_backends.py:3341: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:3341: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:3341: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_auth_backends.py:3400: error: No overload variant of "object" of "_patcher" matches argument types "Type[GenericOpenIdConnectBackend]", "str", "Any" [call-overload]
+ zerver/tests/test_auth_backends.py:3400: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:3400: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:3400: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ zerver/tests/test_auth_backends.py:6082: error: No overload variant of "object" of "_patcher" matches argument types "Type[ZulipLDAPUser]", "str", "None" [call-overload]
+ zerver/tests/test_auth_backends.py:6082: note: Possible overload variants:
+ zerver/tests/test_auth_backends.py:6082: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ zerver/tests/test_auth_backends.py:6082: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
pytest (https://github.com/pytest-dev/pytest)
+ testing/test_pathlib.py:389: error: No overload variant of "object" of "_patcher" matches argument types "Type[Path]", "str", "Type[OSError]" [call-overload]
+ testing/test_pathlib.py:389: note: Possible overload variants:
+ testing/test_pathlib.py:389: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ testing/test_pathlib.py:389: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ testing/test_pathlib.py:396: error: No overload variant of "object" of "_patcher" matches argument types "Type[Path]", "str", "Type[OSError]" [call-overload]
+ testing/test_pathlib.py:396: note: Possible overload variants:
+ testing/test_pathlib.py:396: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ testing/test_pathlib.py:396: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ testing/test_assertrewrite.py:1372: error: No overload variant of "object" of "_patcher" matches argument types "AssertionRewritingHook", "str", "List[str]" [call-overload]
+ testing/test_assertrewrite.py:1372: note: Possible overload variants:
+ testing/test_assertrewrite.py:1372: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ testing/test_assertrewrite.py:1372: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch
... (truncated 240494 chars) ...
Weird primer output. In the first failure, it seems that the first overload matches:
urllib3 (https://github.com/urllib3/urllib3)
+ test/test_queue_monkeypatch.py:25: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[BadError]" [call-overload]
+ test/test_queue_monkeypatch.py:25: note: Possible overload variants:
+ test/test_queue_monkeypatch.py:25: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_queue_monkeypatch.py:25: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
_T is not constrained. Especially when compared to #7542. Anyone got a clue what's going on here?
Diff from mypy_primer, showing the effect of this PR on open source code:
flake8 (https://github.com/pycqa/flake8)
+ tests/unit/test_utils.py:225: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "TextIOWrapper"
+ tests/unit/test_utils.py:225: note: Possible overload variants:
+ tests/unit/test_utils.py:225: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_utils.py:225: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_utils.py:232: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "TextIOWrapper"
+ tests/unit/test_utils.py:232: note: Possible overload variants:
+ tests/unit/test_utils.py:232: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_utils.py:232: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_base_formatter.py:148: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Dict[str, Any]"
+ tests/unit/test_base_formatter.py:148: note: Possible overload variants:
+ tests/unit/test_base_formatter.py:148: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_base_formatter.py:148: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_base_formatter.py:152: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any"
+ tests/unit/test_base_formatter.py:152: note: Possible overload variants:
+ tests/unit/test_base_formatter.py:152: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_base_formatter.py:152: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:160: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", overloaded function
+ tests/unit/plugins/finder_test.py:160: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:160: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:160: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:254: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "List[Any]"
+ tests/unit/plugins/finder_test.py:254: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:254: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:254: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:457: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "List[Any]"
+ tests/unit/plugins/finder_test.py:457: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:457: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:457: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:553: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "List[Any]"
+ tests/unit/plugins/finder_test.py:553: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:553: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:553: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:576: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "List[Any]"
+ tests/unit/plugins/finder_test.py:576: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:576: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:576: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/plugins/finder_test.py:606: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "List[Any]"
+ tests/unit/plugins/finder_test.py:606: note: Possible overload variants:
+ tests/unit/plugins/finder_test.py:606: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/plugins/finder_test.py:606: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_checker_manager.py:39: error: "str" has no attribute "call_count"
+ tests/unit/test_checker_manager.py:42: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "str"
+ tests/unit/test_checker_manager.py:42: note: Possible overload variants:
+ tests/unit/test_checker_manager.py:42: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_checker_manager.py:42: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_checker_manager.py:51: error: "str" has no attribute "call_count"
+ tests/unit/test_checker_manager.py:54: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "str"
+ tests/unit/test_checker_manager.py:54: note: Possible overload variants:
+ tests/unit/test_checker_manager.py:54: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_checker_manager.py:54: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_checker_manager.py:67: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[NotImplementedError]"
+ tests/unit/test_checker_manager.py:67: note: Possible overload variants:
+ tests/unit/test_checker_manager.py:67: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_checker_manager.py:67: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_checker_manager.py:76: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "str"
+ tests/unit/test_checker_manager.py:76: note: Possible overload variants:
+ tests/unit/test_checker_manager.py:76: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_checker_manager.py:76: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/integration/test_checker.py:166: error: No overload variant of "object" of "_patcher" matches argument types "Type[FileProcessor]", "str", "Tuple[str, str, List[Tuple[int, Tuple[int, int]]]]"
+ tests/integration/test_checker.py:166: note: Possible overload variants:
+ tests/integration/test_checker.py:166: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/integration/test_checker.py:166: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/integration/test_checker.py:281: error: No overload variant of "object" of "_patcher" matches argument types "Manager", "str", "Mock"
+ tests/integration/test_checker.py:281: note: Possible overload variants:
+ tests/integration/test_checker.py:281: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/integration/test_checker.py:281: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_legacy_api.py:32: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Tuple[RawConfigParser, str]"
+ tests/unit/test_legacy_api.py:32: note: Possible overload variants:
+ tests/unit/test_legacy_api.py:32: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_legacy_api.py:32: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unit/test_legacy_api.py:134: error: No overload variant of "object" of "_patcher" matches argument types "StyleGuide", "str"
+ tests/unit/test_legacy_api.py:134: note: Possible overload variants:
+ tests/unit/test_legacy_api.py:134: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unit/test_legacy_api.py:134: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/integration/test_main.py:40: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "str"
+ tests/integration/test_main.py:40: note: Possible overload variants:
+ tests/integration/test_main.py:40: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/integration/test_main.py:40: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/integration/test_main.py:61: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "str"
+ tests/integration/test_main.py:61: note: Possible overload variants:
+ tests/integration/test_main.py:61: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/integration/test_main.py:61: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/integration/test_main.py:382: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[KeyboardInterrupt]"
+ tests/integration/test_main.py:382: note: Possible overload variants:
+ tests/integration/test_main.py:382: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/integration/test_main.py:382: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
urllib3 (https://github.com/urllib3/urllib3)
+ test/test_queue_monkeypatch.py:25: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[BadError]" [call-overload]
+ test/test_queue_monkeypatch.py:25: note: Possible overload variants:
+ test/test_queue_monkeypatch.py:25: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_queue_monkeypatch.py:25: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_response.py:960: error: No overload variant of "object" of "_patcher" matches argument types "BytesIO", "str" [call-overload]
+ test/test_response.py:960: note: Possible overload variants:
+ test/test_response.py:960: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_response.py:960: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:241: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:241: note: Possible overload variants:
+ test/test_connectionpool.py:241: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:241: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:242: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:242: note: Possible overload variants:
+ test/test_connectionpool.py:242: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:242: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:265: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:265: note: Possible overload variants:
+ test/test_connectionpool.py:265: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:265: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:266: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:266: note: Possible overload variants:
+ test/test_connectionpool.py:266: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:266: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:279: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:279: note: Possible overload variants:
+ test/test_connectionpool.py:279: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:279: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:325: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "BaseException" [call-overload]
+ test/test_connectionpool.py:325: note: Possible overload variants:
+ test/test_connectionpool.py:325: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:325: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:342: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "HTTPException" [call-overload]
+ test/test_connectionpool.py:342: note: Possible overload variants:
+ test/test_connectionpool.py:342: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:342: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:352: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "EmptyPoolError" [call-overload]
+ test/test_connectionpool.py:352: note: Possible overload variants:
+ test/test_connectionpool.py:352: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:352: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:355: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "AssertionError" [call-overload]
+ test/test_connectionpool.py:355: note: Possible overload variants:
+ test/test_connectionpool.py:355: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:355: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:477: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "Callable[[VarArg(Any), KwArg(Any)], None]" [call-overload]
+ test/test_connectionpool.py:477: note: Possible overload variants:
+ test/test_connectionpool.py:477: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:477: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:527: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "_raise_once_make_request_function" [call-overload]
+ test/test_connectionpool.py:527: note: Possible overload variants:
+ test/test_connectionpool.py:527: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:527: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:556: error: No overload variant of "object" of "_patcher" matches argument types "Type[Timeout]", "str", "int" [call-overload]
+ test/test_connectionpool.py:556: note: Possible overload variants:
+ test/test_connectionpool.py:556: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:556: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_ssltransport.py:562: error: No overload variant of "object" of "_patcher" matches argument types "SSLTransport", "str" [call-overload]
+ test/test_ssltransport.py:562: note: Possible overload variants:
+ test/test_ssltransport.py:562: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_ssltransport.py:562: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_socketlevel.py:1934: error: No overload variant of "object" of "_patcher" matches argument types "Logger", "str" [call-overload]
+ test/with_dummyserver/test_socketlevel.py:1934: note: Possible overload variants:
+ test/with_dummyserver/test_socketlevel.py:1934: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_socketlevel.py:1934: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:395: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_connectionpool.py:395: note: Possible overload variants:
+ test/with_dummyserver/test_connectionpool.py:395: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_connectionpool.py:395: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:408: error: No overload variant of "object" o
... (truncated 181602 chars) ...
The primer problems seem due to a mypy bug: python/mypy#7781.
So what should we do here? I don't think we can afford to merge this until the mypy bug is fixed.
I agree. I marked this PR as "deferred" for now.
Fixed in python/mypy#13482, so should be part of the next mypy release.
Diff from mypy_primer, showing the effect of this PR on open source code:
urllib3 (https://github.com/urllib3/urllib3)
+ test/test_queue_monkeypatch.py:25: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Type[BadError]" [call-overload]
+ test/test_queue_monkeypatch.py:25: note: Possible overload variants:
+ test/test_queue_monkeypatch.py:25: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_queue_monkeypatch.py:25: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_response.py:993: error: No overload variant of "object" of "_patcher" matches argument types "BytesIO", "str" [call-overload]
+ test/test_response.py:993: note: Possible overload variants:
+ test/test_response.py:993: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_response.py:993: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:241: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:241: note: Possible overload variants:
+ test/test_connectionpool.py:241: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:241: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:242: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:242: note: Possible overload variants:
+ test/test_connectionpool.py:242: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:242: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:265: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:265: note: Possible overload variants:
+ test/test_connectionpool.py:265: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:265: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:266: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:266: note: Possible overload variants:
+ test/test_connectionpool.py:266: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:266: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:279: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str" [call-overload]
+ test/test_connectionpool.py:279: note: Possible overload variants:
+ test/test_connectionpool.py:279: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:279: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:325: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "BaseException" [call-overload]
+ test/test_connectionpool.py:325: note: Possible overload variants:
+ test/test_connectionpool.py:325: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:325: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:342: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "HTTPException" [call-overload]
+ test/test_connectionpool.py:342: note: Possible overload variants:
+ test/test_connectionpool.py:342: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:342: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:352: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "EmptyPoolError" [call-overload]
+ test/test_connectionpool.py:352: note: Possible overload variants:
+ test/test_connectionpool.py:352: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:352: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:355: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "AssertionError" [call-overload]
+ test/test_connectionpool.py:355: note: Possible overload variants:
+ test/test_connectionpool.py:355: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:355: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:477: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "Callable[[VarArg(Any), KwArg(Any)], None]" [call-overload]
+ test/test_connectionpool.py:477: note: Possible overload variants:
+ test/test_connectionpool.py:477: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:477: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:527: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnectionPool", "str", "_raise_once_make_request_function" [call-overload]
+ test/test_connectionpool.py:527: note: Possible overload variants:
+ test/test_connectionpool.py:527: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:527: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_connectionpool.py:556: error: No overload variant of "object" of "_patcher" matches argument types "Type[Timeout]", "str", "int" [call-overload]
+ test/test_connectionpool.py:556: note: Possible overload variants:
+ test/test_connectionpool.py:556: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_connectionpool.py:556: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/test_ssltransport.py:562: error: No overload variant of "object" of "_patcher" matches argument types "SSLTransport", "str" [call-overload]
+ test/test_ssltransport.py:562: note: Possible overload variants:
+ test/test_ssltransport.py:562: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/test_ssltransport.py:562: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_socketlevel.py:2059: error: No overload variant of "object" of "_patcher" matches argument types "Logger", "str" [call-overload]
+ test/with_dummyserver/test_socketlevel.py:2059: note: Possible overload variants:
+ test/with_dummyserver/test_socketlevel.py:2059: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_socketlevel.py:2059: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:395: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_connectionpool.py:395: note: Possible overload variants:
+ test/with_dummyserver/test_connectionpool.py:395: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_connectionpool.py:395: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_connectionpool.py:408: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_connectionpool.py:408: note: Possible overload variants:
+ test/with_dummyserver/test_connectionpool.py:408: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_connectionpool.py:408: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ test/with_dummyserver/test_https.py:636: error: No overload variant of "object" of "_patcher" matches argument types "HTTPConnection", "str", "bool", "None" [call-overload]
+ test/with_dummyserver/test_https.py:636: note: Possible overload variants:
+ test/with_dummyserver/test_https.py:636: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ test/with_dummyserver/test_https.py:636: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/unittests/sources/test_lxd.py:426: error: No overload variant of "object" of "_patcher" matches argument types "Type[Session]", "str"
+ tests/unittests/sources/test_lxd.py:426: note: Possible overload variants:
+ tests/unittests/sources/test_lxd.py:426: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/sources/test_lxd.py:426: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/test_net.py:6130: error: No overload variant of "object" of "_patcher" matches argument types "Type[Renderer]", "str"
+ tests/unittests/test_net.py:6130: note: Possible overload variants:
+ tests/unittests/test_net.py:6130: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/test_net.py:6130: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/test_net.py:6131: error: No overload variant of "object" of "_patcher" matches argument types "Type[Renderer]", "str"
+ tests/unittests/test_net.py:6131: note: Possible overload variants:
+ tests/unittests/test_net.py:6131: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/test_net.py:6131: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/test_net.py:6153: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/test_net.py:6153: note: Possible overload variants:
+ tests/unittests/test_net.py:6153: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/test_net.py:6153: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting_hyperv.py:264: error: No overload variant of "object" of "_patcher" matches argument types "Type[LogHandler]", "str"
+ tests/unittests/reporting/test_reporting_hyperv.py:264: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting_hyperv.py:264: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting_hyperv.py:264: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:184: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:184: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:184: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:184: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:200: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:200: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:200: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:200: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:206: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:206: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:206: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:206: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:228: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:228: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:228: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:228: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:237: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "DictRegistry"
+ tests/unittests/reporting/test_reporting.py:237: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:237: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:237: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:240: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:240: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:240: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:240: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:254: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "DictRegistry"
+ tests/unittests/reporting/test_reporting.py:254: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:254: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:254: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:257: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:257: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:257: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:257: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:279: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "DictRegistry"
+ tests/unittests/reporting/test_reporting.py:279: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:279: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:279: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:282: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:282: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:282: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:282: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:292: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "DictRegistry"
+ tests/unittests/reporting/test_reporting.py:292: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:292: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:292: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/reporting/test_reporting.py:295: error: No overload variant of "object" of "_patcher" matches argument types Module, "str"
+ tests/unittests/reporting/test_reporting.py:295: note: Possible overload variants:
+ tests/unittests/reporting/test_reporting.py:295: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/reporting/test_reporting.py:295: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/distros/test_networking.py:316: error: No overload variant of "object" of "_patcher" matches argument types "LinuxNetworking", "str"
+ tests/unittests/distros/test_networking.py:316: note: Possible overload variants:
+ tests/unittests/distros/test_networking.py:316: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tests/unittests/distros/test_networking.py:316: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ tests/unittests/distros/test_networking.py:340: error: No overload variant of "object" of "_patcher" matches argument types "LinuxNetworking", "str"
+ tests/unittests/distros/test_networking.py:340: note: Possible overload variants:
+ tests/unittests/distros/test_networking.py:340: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospe
... (truncated 1236 lines) ...
Diff from mypy_primer, showing the effect of this PR on open source code:
tornado (https://github.com/tornadoweb/tornado)
+ tornado/test/auth_test.py:408: error: No overload variant of "object" of "_patcher" matches argument types "Type[OAuth1ServerRequestTokenHandler]", "str"
+ tornado/test/auth_test.py:408: note: Possible overload variants:
+ tornado/test/auth_test.py:408: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/auth_test.py:408: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:183: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:183: note: Possible overload variants:
+ tornado/test/options_test.py:183: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:183: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:188: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:188: note: Possible overload variants:
+ tornado/test/options_test.py:188: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:188: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:192: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:192: note: Possible overload variants:
+ tornado/test/options_test.py:192: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:192: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
streamlit (https://github.com/streamlit/streamlit)
+ lib/tests/streamlit/write_test.py: note: In member "test_empty" of class "StreamlitWriteTest":
+ lib/tests/streamlit/write_test.py:270:18: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str", "Type[PropertyMock]" [call-overload]
+ lib/tests/streamlit/write_test.py:270:18: note: Possible overload variants:
+ lib/tests/streamlit/write_test.py:270:18: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/write_test.py:270:18: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/logger_test.py:101:14: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/streamlit/logger_test.py:101:14: note: Possible overload variants:
+ lib/tests/streamlit/logger_test.py:101:14: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/logger_test.py:101:14: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
- lib/tests/streamlit/config_test.py:45:13: error: "object" has no attribute "start" [attr-defined]
- lib/tests/streamlit/config_test.py: note: In member "tearDown" of class "ConfigTest":
- lib/tests/streamlit/config_test.py:49:13: error: "object" has no attribute "stop" [attr-defined]
+ lib/tests/streamlit/config_test.py:38:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Dict[str, str]" [call-overload]
+ lib/tests/streamlit/config_test.py:38:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:38:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:38:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:41:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Optional[Dict[str, ConfigOption]]" [call-overload]
+ lib/tests/streamlit/config_test.py:41:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:41:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:41:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py: note: In member "test_on_config_parsed" of class "ConfigTest":
+ lib/tests/streamlit/config_test.py:505:14: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/streamlit/config_test.py:505:14: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:505:14: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:505:14: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:514:17: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/config_test.py:517:17: error: "str" has no attribute "assert_not_called" [attr-defined]
+ lib/tests/streamlit/config_test.py:520:17: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/config_test.py:524:13: error: "str" has no attribute "assert_called_once" [attr-defined]
- lib/tests/streamlit/config_test.py:539:13: error: "object" has no attribute "start" [attr-defined]
- lib/tests/streamlit/config_test.py: note: In member "tearDown" of class "ConfigLoadingTest":
- lib/tests/streamlit/config_test.py:543:13: error: "object" has no attribute "stop" [attr-defined]
+ lib/tests/streamlit/config_test.py:532:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Dict[str, str]" [call-overload]
+ lib/tests/streamlit/config_test.py:532:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:532:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:532:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:535:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "None" [call-overload]
+ lib/tests/streamlit/config_test.py:535:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:535:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:535:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/runtime/credentials_test.py:264:13: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/runtime/caching/singleton_test.py: note: In class "SingletonTest":
+ lib/tests/streamlit/runtime/caching/singleton_test.py:44:6: error: No overload variant of "object" of "_patcher" matches argument types Module, "str" [call-overload]
+ lib/tests/streamlit/runtime/caching/singleton_test.py:44:6: note: Possible overload variants:
+ lib/tests/streamlit/runtime/caching/singleton_test.py:44:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/runtime/caching/singleton_test.py:44:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/testutil.py: note: In function "patch_config_options":
+ lib/tests/testutil.py:56:10: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/testutil.py:56:10: note: Possible overload variants:
+ lib/tests/testutil.py:56:10: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/testutil.py:56:10: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py: note: In class "DataFrameSelectorTest":
+ lib/tests/streamlit/dataframe_selector_test.py:36:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:36:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:36:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:36:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:37:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:37:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:37:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:37:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:44:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:44:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:44:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:44:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:45:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:45:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:45:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:45:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:54:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:54:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:54:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:54:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:55:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:55:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:55:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:55:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:62:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:62:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:62:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:62:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:63:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:63:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:63:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:63:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:80:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:80:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:80:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:80:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:81:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:81:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:81:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:81:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:90:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:90:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:90:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:90:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:91:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:91:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:91:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:91:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:100:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:100:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:100:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:100:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:101:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:101:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:101:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:101:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:110:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:110:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:110:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:110:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:111:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:111:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:111:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:111:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:120:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:120:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:120:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:120:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:121:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:121:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:121:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:121:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:130:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:130:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:130:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:130:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/st
... (truncated 1160 lines) ...
Fixed in python/mypy#13482, so should be part of the next mypy release.
Sadly, the mypy fix didn't quite make it into 0.981, so we'll have to wait a little longer. But it should be in 0.99x.
If this is definitely fixed on mypy master, we should merge. If we want to run primer on this with the mypy fix, let me know and I can run it ad hoc.
If we want to run primer on this with the mypy fix, let me know and I can run it ad hoc.
That would be great!
According to mypy_primer -o concise --new HEAD --old HEAD --custom-typeshed-repo ~/dev/typeshed --new-typeshed unittest-patch --old-typeshed origin/master no meaningful changes 🤖🎉
Diff from mypy_primer, showing the effect of this PR on open source code:
tornado (https://github.com/tornadoweb/tornado)
+ tornado/test/auth_test.py:408: error: No overload variant of "object" of "_patcher" matches argument types "Type[OAuth1ServerRequestTokenHandler]", "str"
+ tornado/test/auth_test.py:408: note: Possible overload variants:
+ tornado/test/auth_test.py:408: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/auth_test.py:408: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:183: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:183: note: Possible overload variants:
+ tornado/test/options_test.py:183: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:183: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:188: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:188: note: Possible overload variants:
+ tornado/test/options_test.py:188: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:188: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
+ tornado/test/options_test.py:192: error: No overload variant of "object" of "_patcher" matches argument types "_Mockable", "str", "int"
+ tornado/test/options_test.py:192: note: Possible overload variants:
+ tornado/test/options_test.py:192: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ tornado/test/options_test.py:192: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[MagicMock]
streamlit (https://github.com/streamlit/streamlit)
+ lib/tests/testutil.py: note: In function "patch_config_options":
+ lib/tests/testutil.py:39:10: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/testutil.py:39:10: note: Possible overload variants:
+ lib/tests/testutil.py:39:10: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/testutil.py:39:10: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/write_test.py: note: In member "test_empty" of class "StreamlitWriteTest":
+ lib/tests/streamlit/write_test.py:309:18: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str", "Type[PropertyMock]" [call-overload]
+ lib/tests/streamlit/write_test.py:309:18: note: Possible overload variants:
+ lib/tests/streamlit/write_test.py:309:18: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/write_test.py:309:18: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/logger_test.py:99:14: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/streamlit/logger_test.py:99:14: note: Possible overload variants:
+ lib/tests/streamlit/logger_test.py:99:14: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/logger_test.py:99:14: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
- lib/tests/streamlit/config_test.py:45:13: error: "object" has no attribute "start" [attr-defined]
- lib/tests/streamlit/config_test.py: note: In member "tearDown" of class "ConfigTest":
- lib/tests/streamlit/config_test.py:49:13: error: "object" has no attribute "stop" [attr-defined]
+ lib/tests/streamlit/config_test.py:38:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Dict[str, str]" [call-overload]
+ lib/tests/streamlit/config_test.py:38:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:38:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:38:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:41:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Optional[Dict[str, ConfigOption]]" [call-overload]
+ lib/tests/streamlit/config_test.py:41:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:41:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:41:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py: note: In member "test_on_config_parsed" of class "ConfigTest":
+ lib/tests/streamlit/config_test.py:526:14: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Any" [call-overload]
+ lib/tests/streamlit/config_test.py:526:14: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:526:14: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:526:14: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:535:17: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/config_test.py:538:17: error: "str" has no attribute "assert_not_called" [attr-defined]
+ lib/tests/streamlit/config_test.py:541:17: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/config_test.py:545:13: error: "str" has no attribute "assert_called_once" [attr-defined]
- lib/tests/streamlit/config_test.py:560:13: error: "object" has no attribute "start" [attr-defined]
- lib/tests/streamlit/config_test.py: note: In member "tearDown" of class "ConfigLoadingTest":
- lib/tests/streamlit/config_test.py:564:13: error: "object" has no attribute "stop" [attr-defined]
+ lib/tests/streamlit/config_test.py:553:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "Dict[str, str]" [call-overload]
+ lib/tests/streamlit/config_test.py:553:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:553:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:553:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/config_test.py:556:13: error: No overload variant of "object" of "_patcher" matches argument types Module, "str", "None" [call-overload]
+ lib/tests/streamlit/config_test.py:556:13: note: Possible overload variants:
+ lib/tests/streamlit/config_test.py:556:13: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/config_test.py:556:13: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/runtime/credentials_test.py:264:13: error: "str" has no attribute "assert_called_once" [attr-defined]
+ lib/tests/streamlit/runtime/caching/singleton_test.py: note: In class "SingletonTest":
+ lib/tests/streamlit/runtime/caching/singleton_test.py:41:6: error: No overload variant of "object" of "_patcher" matches argument types Module, "str" [call-overload]
+ lib/tests/streamlit/runtime/caching/singleton_test.py:41:6: note: Possible overload variants:
+ lib/tests/streamlit/runtime/caching/singleton_test.py:41:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/runtime/caching/singleton_test.py:41:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py: note: In class "DataFrameSelectorTest":
+ lib/tests/streamlit/dataframe_selector_test.py:39:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:39:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:39:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:39:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:40:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:40:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:40:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:40:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:47:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:47:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:47:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:47:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:48:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:48:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:48:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:48:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:57:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:57:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:57:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:57:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:58:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:58:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:58:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:58:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:70:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:71:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:85:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:85:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:85:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:85:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:86:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:86:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:86:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:86:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:98:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:98:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:98:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:98:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:99:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:99:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:99:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:99:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:106:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:106:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:106:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:106:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:107:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:107:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:107:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:107:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:114:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:114:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:114:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:114:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:115:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:115:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:115:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:115:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:124:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:124:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:124:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:124:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:125:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:125:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:125:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:125:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:139:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:139:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:139:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:139:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:140:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:140:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:140:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:140:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/tests/streamlit/dataframe_selector_test.py:149:6: error: No overload variant of "object" of "_patcher" matches argument types "Type[DeltaGenerator]", "str" [call-overload]
+ lib/tests/streamlit/dataframe_selector_test.py:149:6: note: Possible overload variants:
+ lib/tests/streamlit/dataframe_selector_test.py:149:6: note: def [_T] object(target, attribute: str, new: _T, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[_T]
+ lib/tests/streamlit/dataframe_selector_test.py:149:6: note: def object(target, attribute: str, *, spec: Optional[Any] = ..., create: bool = ..., spec_set: Optional[Any] = ..., autospec: Optional[Any] = ..., new_callable: Optional[Any] = ..., **kwargs: Any) -> _patch[Union[MagicMock, AsyncMock]]
+ lib/test
... (truncated 1105 lines) ...