Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Expose named tuple member in completions #343

Description

from collections import namedtuple
nt = namedtuple('Point', ['x', 'y'])
pt = nt(1, 2)

pt. should show x and y.

Activity

  1. MikhailArkhipov commented on Feb 9, 2019

    @MikhailArkhipov
    Author

    #546 supports named tuple from typing.

  2. jakebailey commented on Feb 9, 2019

    @jakebailey
    Member

    This example doesn't show x and y in the completion after the ., though.

    image

    image

    Seems to show tuple, not a named tuple.

  3. MikhailArkhipov commented on Feb 9, 2019

    @MikhailArkhipov
    Author

    I meant NamedTuple from typing should work.

  4. Rackme commented on Mar 17, 2021

    @Rackme

    It seems I'm able to do it with official Microsoft Python plugin :

    screenshot_2576

  5. judej commented on Apr 13, 2022

    @judej

    Thank you for the report. This project is no longer active. If you are using the Python language server in VSCode, the language server you are using is Pylance and please the http://github.com/microsoft/pylance-release to report issues.

    If you are using Visual Studio, then, please use http://github.com/microsoft/PTVS to report issues.

    thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions