Skip to content

Type issue not found in function call #8434

Closed
@maxnoe

Description

@maxnoe

Running mypy on this small code example:

def build_greeting(name: str = 'World') -> str:
    return f'Hello {name}!'


def greet(name='World'):
    print(build_greeting(name))


if __name__ == '__main__':
    greet('foo')
    greet(4)

results in it reporting "no issues". Although greet and thus build_greeting are called with an integer.

Metadata

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