Skip to content

Infer namedtuple's arguments #109

Open
@pylint-bot

Description

@pylint-bot

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


We could probably understand this:

#!python

from collections import namedtuple
a = namedtuple('a', 'a b c')
f = a(1, 2, 3)
f. b.x # int has no member 'x'

We currently don't because the attributes used are EmptyNodes and they don't reflect the proper values passed at initialisation.


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