KotlinIsland / KotlinIsland/basedmypy

some str-format messages need more info (unions)

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

Description

```py
d: date | None
f"{d:%d}" # error: Unrecognized format specification "%d/%m/%Y" [str-format]
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown Python snippet and inspect the str-format diagnostic path for union-typed values. The issue is done when the resulting error provides the missing information for this date-or-None format specification case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.