Skip to content

Keyword arguments are reported as Unbound #10811

@erictraut

Description

@erictraut

In the following code sample, the keywords used in the last function call are reported as potentially unbound.

import json

def foo() -> tuple[str, str]: ...

try:
    a, b = foo()
    c = "".join(a)
    e = json.loads("")
except:
    e = {}

f = e.get("", None)

g = dict(f=f, c=c) # f is reported as Unbound

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions