KotlinIsland / KotlinIsland/basedmypy

`NamedCallable` should be a thing

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

Description

Turns out that it is needed in code, who woulda guessed...

# Workaround
```py
class Named(Protocol):
__name__: str
__qualname__: str

a: "(int) -> str" & Named
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start with the workaround shown in the issue and trace the project's callable typing support to determine the intended NamedCallable shape. Done means the requested type is available without the workaround and its behavior is covered by tests.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.