mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
add unittest.mock.Base to MagicMixin and MagicProxy (#12747)
This matches the runtime.
This commit is contained in:
1 parent
04f3f77ee5
commit
1a0b507ae7
1 file changed
+2
-2
@@ -363,7 +363,7 @@ class _patcher:
|
||||
|
||||
patch: _patcher
|
||||
|
||||
class MagicMixin:
|
||||
class MagicMixin(Base):
|
||||
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
||||
|
||||
class NonCallableMagicMock(MagicMixin, NonCallableMock): ...
|
||||
@@ -393,7 +393,7 @@ class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock):
|
||||
# But, `NonCallableMock` super-class has the better version.
|
||||
def reset_mock(self, visited: Any = None, *, return_value: bool = False, side_effect: bool = False) -> None: ...
|
||||
|
||||
class MagicProxy:
|
||||
class MagicProxy(Base):
|
||||
name: str
|
||||
parent: Any
|
||||
def __init__(self, name: str, parent: Any) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user