Skip to content

[Typing] mypy complains if we pass a custom type to bloq.call_classically() #1623

Open
@tanujkhattar

Description

@tanujkhattar

We've recently added QGF and QGFPoly classes to the quantum data types. As a result, we want to pass instances of custom types (eg: galois.Poly) as parameters to bloq.call_classically() method. On doing this, mypy complains with a arg-type error since definition of ClassicalValT is restrictive.

For now, I'm adding # type: ignore[arg-type] to unblock development, but someone should go and fix this. For example, see tests in #1622

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions