KotlinIsland / KotlinIsland/basedtyping
`isforminstance` function for testing if something is 'instance' of a typeform
- Dominant language
- Python
- Stars
- 12
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Ladies and Gentlemen, we got him.
```py
from typing import get_args, Literal
Letter = Literal["a", "b", "c"]
letters: tuple[Letters, ...] = get_args(Letters)
if "a" in letters: # good intent, but I don't wanna make a value for every type
...
if isinstance("a", Letter): # error
...
if isforminstance("a", Letter): # based
...
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files, tests, or entry points. Start by locating the repository's existing runtime typing components and determine the intended supported type forms for isforminstance; done means the proposed call works for the shown Literal example with documented behavior and coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100