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

Methods on values returned by functions do not lead to correct output #251

Open
koebi opened this issue Jan 11, 2024 · 0 comments
Open

Methods on values returned by functions do not lead to correct output #251

koebi opened this issue Jan 11, 2024 · 0 comments

Comments

@koebi
Copy link

koebi commented Jan 11, 2024

Describe the bug
str.removeprefix() does not get discovered as needing 3.9 when used on the return type of a method, even if it's a string.

To Reproduce
Running vermin on

def foo() -> str:
    return "Foobar"

a = foo()
b = a.removeprefix("Foo")

returns

Minimum required versions: 3.0

Expected behavior
It should return 3.9.

Environment (please complete the following information):
vermin version 1.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant