Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Is it possible to use .pyi files alongside analized code? #296

@lostmsu

Description

@lostmsu

I am analyzing a project, that does not have embedded typings, and but there are separate typings for it in .pyi files.

How can I make PythonAnalyzer use those typings?

What I've tried so far:

  1. just parse and add typings to analysis queue
  2. put typings into a separate directory Typings like Typings\mymodule\mysubmodule.pyi, and use PythonAnalysis.SetTypeStubPaths to Typings.

In both cases, when walking mymodule\mysubmodule.py file after analysis, and trying to GetValues(Expression, ...) I get the same values as if there's no matching typings file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question about the LS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions