unittest.mock.patch()

unittest.mock.patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) patch() acts as a function decorator, class decorator or a context manager. Inside the body of the function or with statement, the target is patched with a new object. When the function/with statement exits the patch is undone. If new is omitted, then the target is replaced with a MagicMock. If patch() is used as a decorator and new is omitted, the created mock is pass

hmac.HMAC.copy()

HMAC.copy() Return a copy (“clone”) of the hmac object. This can be used to efficiently compute the digests of strings that share a common initial substring.

profile.Profile.dump_stats()

dump_stats(filename) Write the results of the current profile to filename.

decimal.Context.divide_int()

divide_int(x, y) Return x divided by y, truncated to an integer.

subprocess.CompletedProcess.stderr

stderr Captured stderr from the child process. A bytes sequence, or a string if run() was called with universal_newlines=True. None if stderr was not captured.

importlib.abc.PathEntryFinder.invalidate_caches()

invalidate_caches() An optional method which, when called, should invalidate any internal cache used by the finder. Used by PathFinder.invalidate_caches() when invalidating the caches of all cached finders.

decimal.Context.copy_sign()

copy_sign(x, y) Copies the sign from y to x.

asyncio.AbstractEventLoop.get_task_factory()

AbstractEventLoop.get_task_factory() Return a task factory, or None if the default one is in use. New in version 3.4.4.

typing.Sequence

class typing.Sequence(Sized, Iterable[T_co], Container[T_co]) A generic version of collections.abc.Sequence.

configparser.MissingSectionHeaderError

exception configparser.MissingSectionHeaderError Exception raised when attempting to parse a file which has no section headers.