KotlinIsland / KotlinIsland/basedmypy

Show `Annotated` in messages

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

Description

```py
from typing import Annotated

def foo(a: Annotated[int, "huuh?"]) -> None: ...

reveal_type(foo) # Revealed type is "def (a: int Annotated with 'huuh?') -> None"
foo("") # error: Argument 1 to "foo" has incompatible type "str"; expected "int Annotated with 'huuh?'" [arg-type]
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Annotated example in basedmypy and inspect the type-rendering and diagnostic paths that produce reveal_type and arg-type messages. Compare the current output with the wording shown in the issue; done means both messages display the Annotated metadata consistently.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.