geldata / geldata/gel-python

prohibit specifying computeds that type doesn't have declared

Open
#743 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
415
Forks
50
PR merge metrics
No merged PRs in 30d

Description

`MyType.select(computed=...)` should be prohibited at the type level if `MyType` doesn't have `computed`. We won't be able to unpack fields we don't have definitions for, so we have to simply reject this at the typing level.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Python typing for MyType.select and how computed definitions are represented. Add type-level rejection for computed names absent from the selected type, then verify typing coverage for MyType.select(computed=...) with and without a declared computed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.