KotlinIsland / KotlinIsland/basedtyping

`Function` type doesn't work with `isinstance` checks

Open
#66 0 comments 1 reaction 0 assignees View on GitHub
typetime
Dominant language
Python
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```py
from basedtyping import Function

isinstance(1, Function) # Argument 2 to "isinstance" has incompatible type "object"; expected "type | UnionType | tuple[type | UnionType | tuple[Any, ...], ...]" [arg-type]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the definition and export of basedtyping.Function, then reproduce the shown isinstance type-checking error with basedmypy. The issue is done when the example accepts Function as the second argument to isinstance without the reported diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.