Skip to content

Support namedtuple's getitem #182

Open
@pylint-bot

Description

@pylint-bot

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


We should detect namedtuple's indexing, as it is the case for this example:

#!python

from collections import namedtuple
f = namedtuple('a', 'a b')
c = f(1, 2)
print(c[0].lala)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions