KotlinIsland / KotlinIsland/basedmypy

an `AttributeOf` form

Open
#800 0 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
Python
Stars
202
Forks
6
PR merge metrics
No merged PRs in 30d

Description

like `keyof` in ts:
```py
def f[T](t: T, a: AttributeOf[T]):

f(1, "real") # ok
f(1, "fake") # error
```

Contributor guide

Open the contributing guide

Research direction

Use the issue's generic function example as the starting point and inspect the type-checker entry points for existing typing constructs. Define what AttributeOf[T] should accept, then verify that an existing attribute such as "real" is accepted while "fake" is rejected for the shown call.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.