Skip to content

pyright error: Argument missing for parameter on parametrize #270

Description

@BorjaEst

I am getting the following error when I use pyright to check typing parametrize function:

error: Argument missing for parameter "host_class_or_module" (reportGeneralTypeIssues)
error: Argument missing for parameter "fixtures_dest" (reportGeneralTypeIssues)

This errror is related to my piece of code:

from pytest_cases import parametrize
class Authorized:
    @parametrize("path", example_paths)  # <----- here comes the error
    def case_ValidToken(self, path):
        return path, {"Authorization": f"Bearer something"}

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