Skip to content

patch.object throws error #914

Closed
@ParthGandhi

Description

@ParthGandhi

Using patch.object from unittest.mock throws:
error: Callable[[Any, Any, Any, Any, Any, Any, Any, KwArg(Any)], Any] has no attribute "object"

Is this because object is added dynamically to patch? Is there a way to fix this and/or ignore all errors of this kind?

I can provide a runnable example if you'd like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions