Pometry / Pometry/Raphtory

Stubsgen: handle python types for unresolved classes

Open
#2,300 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Documentation
Dominant language
Rust
Stars
642
Forks
70
Avg merge
2d 13h
Merged PRs (30d)
21

Description

Follows on from https://github.com/Pometry/Raphtory/pull/2273

For the stubsgen errors as follows we need to:

  • Expose types to python
  • Identify infered type in pthon
  • Handle context dependent outputs
WARNING:raphtory.Graph.create_index_in_ram_with_spec:missing parameter py_spec in docs.
ERROR:raphtory.Graph.create_index_in_ram_with_spec:parameter IndexSpec appears in documentation but does not exist.
ERROR:raphtory.PersistentGraph.create_index_in_ram_with_spec:parameter IndexSpec appears in documentation but does not exist.
ERROR:raphtory.Nodes.metadata:Invalid return type 'MetadataView': Unknown type MetadataView
ERROR:raphtory.PathFromNode.metadata:Invalid return type 'MetadataView': Unknown type MetadataView
ERROR:raphtory.PathFromGraph.metadata:Invalid return type 'MetadataListList': Unknown type MetadataListList
ERROR:raphtory.PathFromGraph.properties:Invalid return type 'NestedPropsIterable': Unknown type NestedPropsIterable
ERROR:raphtory.Edge.explode:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.Edge.explode_layers:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.Edges.deletions:Invalid return type 'PyGenericIterable': Unknown type PyGenericIterable
ERROR:raphtory.Edges.explode:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.Edges.explode_layers:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.Edges.history:Invalid return type 'PyGenericIterable': Unknown type PyGenericIterable
ERROR:raphtory.Edges.metadata:Invalid return type 'MetadataView': Unknown type MetadataView
ERROR:raphtory.Edges.time:Invalid return type 'I64Iterable': Unknown type I64Iterable
ERROR:raphtory.NestedEdges.explode:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.NestedEdges.explode_layers:Invalid return type 'Exploded': Unknown type Exploded
ERROR:raphtory.NestedEdges.layer_name:Invalid return type 'NestedArcStringIterable': Unknown type NestedArcStringIterable
ERROR:raphtory.NestedEdges.metadata:Invalid return type 'MetadataListList': Unknown type MetadataListList
ERROR:raphtory.NestedEdges.properties:Invalid return type 'PyNestedPropsIterable': Unknown type PyNestedPropsIterable

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #2273 and the stubsgen errors listed in this issue. Trace how unresolved classes, inferred Python types, and context-dependent outputs are handled; done means the listed warnings and unknown-type errors are resolved and the affected types are exposed correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.