8000 (🐞) Duplicate error when `show-error-context` is enabled · Issue #14780 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
(🐞) Duplicate error when show-error-context is enabled #14780
Closed as not planned
@KotlinIsland

Description

@KotlinIsland
def foo(a: object = b) -> None:
    pass
main.py:1: error: Name "b" is not defined  [name-defined]
main.py: note: In function "foo":
main.py:1: error: Name "b" is not defined  [name-defined]

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0