Skip to content

How to add python types?Β #10576

@antspy

Description

@antspy

πŸ› Describe the bug

It seems like torch_geometric has no type annotations at all. Pylance complains with:
Stub file not found for "torch_geometric.data"Pylance[reportMissingTypeStubs](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportMissingTypeStubs.md)

Are there type stubs I can install somewhere? How are we meant to solve the problem?

Versions

Not feeling comfortable adding so much information about my setup. The relevant versions:

Python: 3.12
[pip3] torch==2.9.1
[pip3] torch-geometric==2.7.0

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