patch_object

patch_object(
    o: ~T,
    *,
    missing_modules: Iterable[str],
    dep_target: str,
    fail_if_not_patchable: bool = True,
    except_for: str | Iterable[str] | None = None
) -> ~T
Parameters:
NameDescription
oType: ~T
missing_modulesType: Iterable[str]
dep_targetType: str
fail_if_not_patchableType: bool

Default: True
except_forType: str | Iterable[str] | None

Default: None