Skip to content

Type error when using an ABC as a spec #13

@mcous

Description

@mcous

overview

Creating doubles of abstract interfaces defined using ABC is a great way to use to use decoy, and it works! However, given the way Decoy::create_decoy is typed, mypy throws an error when you try to pass an ABC as spec.

acceptance criteria

  • Passing an ABC as spec does not throw a type error

implementation notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions