Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions stdlib/3/unittest/mock.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ from typing import Any, List, Optional, Text, Tuple, Type, TypeVar

_T = TypeVar("_T")

__all__ = [
'Mock',
'MagicMock',
'patch',
'sentinel',
'DEFAULT',
'ANY',
'call',
'create_autospec',
'AsyncMock',
'FILTER_DIR',
'NonCallableMock',
'NonCallableMagicMock',
'mock_open',
'PropertyMock',
'seal',
]
__version__: str

FILTER_DIR: Any

class _slotted: ...
Expand Down
2 changes: 0 additions & 2 deletions tests/stubtest_whitelists/py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ types.WrapperDescriptorType.__get__
unittest.TestCase.addCleanup
unittest.case.TestCase.addCleanup
unittest.doModuleCleanups
unittest.mock.MagicProxy.__call__
unittest.mock._MockIter.__iter__
weakref.WeakValueDictionary.__init__
weakref.WeakValueDictionary.update
weakref.getweakrefcount
Expand Down
19 changes: 19 additions & 0 deletions third_party/2and3/mock.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ from typing import Any, List, Optional, Text, Tuple, Type, TypeVar

_T = TypeVar("_T")

__all__ = [
'Mock',
'MagicMock',
'patch',
'sentinel',
'DEFAULT',
'ANY',
'call',
'create_autospec',
'AsyncMock',
'FILTER_DIR',
'NonCallableMock',
'NonCallableMagicMock',
'mock_open',
'PropertyMock',
'seal',
]
__version__: str

FILTER_DIR: Any

class _slotted: ...
Expand Down