Skip to content

[invalid-name] Failure to recognize exclusive assignment for a value assigned a non-constant #10745

@jacobtylerwalls

Description

@jacobtylerwalls

Bug description

def a():
    return 1, 2, 3

if a():
    BBB = a()
else:
    BBB = 500

Configuration

Command used

pylint a.py

Pylint output

invalid-name

Expected behavior

Thanks @nmlorg for the report

Pylint version

main

OS / Environment

No response

Additional dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions