m

    Manuel Aristarán

    2 years ago
    Has anyone else had issues with VSCode not picking up
    prefect
    typing information when importing the module?
    mypy
    is also complaining…
    nicholas

    nicholas

    2 years ago
    I've seen this before @Manuel Aristarán - in the bottom left of VSCode there's an option to choose your Python environment. My issue was that it was using a different environment than the one I had installed Prefect in.
    m

    Manuel Aristarán

    2 years ago
    It’s not just VSCode.
    mypy
    also can’t find prefect’s typings
    error: Skipping analyzing 'prefect': found module but no type hints or library stubs
    Chris White

    Chris White

    2 years ago
    Are you sure
    mypy
    and
    prefect
    are installed in the same environment? We actually enforce
    mypy
    static type checks as a circleCI job on all PRs so this is surprising to see
    Scott Zelenka

    Scott Zelenka

    2 years ago
    I've ran into this with PyCharm, specifically with Parameters