not-a-mapping / E1134ΒΆ

Message emitted:

Non-mapping value %s is used in a mapping context

Description:

Used when a non-mapping value is used in place where mapping is expected

Problematic code:

def print_colors(**colors):
    print(colors)


print_colors(**list("red", "black"))  # [not-a-mapping]

Correct code:

def print_colors(**colors):
    print(colors)


print_colors(**dict(red=1, black=2))

Created by the typecheck checker.