Skip to content

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

Open
@koebi

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions