Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helpful-string incorrectly triggers on every generic #598

Open
DetachHead opened this issue Dec 11, 2023 · 2 comments · May be fixed by #603
Open

helpful-string incorrectly triggers on every generic #598

DetachHead opened this issue Dec 11, 2023 · 2 comments · May be fixed by #603
Labels
bug Something isn't working p-1 high

Comments

@DetachHead
Copy link
Collaborator

DetachHead commented Dec 11, 2023

Describe the problem, ie expected/actual result (if it's not blatantly obvious)

No response

Gist to reproduce

from typing import TypeVar

_T = TypeVar("_T", bound=int)


def asdf(a: _T, b: int):
    print(f"{a}") # error: The type "_T@asdf" doesn't define a __format__, __str__ or __repr__ [helpful-string]
    print(f"{b}")
@DetachHead DetachHead added the bug Something isn't working label Dec 11, 2023
@KotlinIsland
Copy link
Owner

I would make sense to use the bound for this analysis right?

@DetachHead
Copy link
Collaborator Author

i think so

@KotlinIsland KotlinIsland added the p-1 high label Jun 15, 2024
@KotlinIsland KotlinIsland linked a pull request Jul 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p-1 high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants