0xPlaygrounds / 0xPlaygrounds/subgrounds

Generating typing for subgraphs

Ouverte
#41 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
73
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Is your feature request related to a problem? Please describe.**
I want type information when using subgraph and fieldpath objects.

**Describe the solution you'd like**
Generating `.pyi` files for full type information, likely thru a CLI command in `contrib`.

**Describe alternatives you've considered**
- Using notebooks
- Large projects are easier with packages

**Additional context**
Likely would be a tall ordering and would only work on CLI or first time `.load_subgraph` is invoked.

**Implementation checklist**
- [ ] Task 1

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at the existing CLI commands in the `contrib` module and the `load_subgraph` method to understand how subgraphs and fieldpath objects are currently handled. The goal is to generate `.pyi` type stub files, which requires understanding the GraphQL schema introspection and Python's typing system. Check if there are existing tests for type generation or subgraph loading to see the expected output format.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
graphql, python
Domaine
backend-api-design, cli, tooling
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.