Stubsgen: handle python types for unresolved classes
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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