8000 PyGraph not typed correctly in VSCode, disallowing autocomplete · Issue #832 · Qiskit/rustworkx · GitHub
[go: up one dir, main page]

Skip to content
PyGraph not typed correctly in VSCode, disallowing autocomplete #832
@thomasaarholt

Description

@thomasaarholt

Information

  • rustworkx version: 0.12.1

  • Python version: 3.10.9

  • Rust version: Not installed, installed via wheel

  • Operating system:
    Debian Buster

What is the current behavior?

VSCode is unable to parse the type of PyGraph, see below.

Screenshot 2023-03-14 at 07 49 48

image

This makes it very difficult to write code, especially while getting used to a new API.

Autocompletion works in iPython, and assumedly, the Jupyter Notebook (both use Jedi).

What is the expected behavior?

VSCode should identify the type of the graph

Steps to reproduce the problem

In VSCode:

import rustworkx

graph = rustworkx.PyGraph()

a = graph.add_node("A")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0