Skip to content

support more check on namedtuple #2458

@asukaminato0721

Description

@asukaminato0721

Describe the Bug

from collections import namedtuple

def f():
    return namedtuple("X", "a b c")

f().d

this should error.

find this from #2075 (comment)

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-discussionAn issue where it's not clear whether there is a bug or we are behaving as expected.typechecking

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions