Skip to content

@classmethod decorators not being properly treated #499

Closed
likern/vscode-python
#4

Description

@siftikha

Environment data

VS Code version: 1.19.0
Python Extension version:
Python Version: 3.6
OS and version: osx 10.13

I have a class defined as below

class A(object):
  @classmethod
  def load(cls, pk):
    pass
a = A()

Actual behavior

When I type a.load, cls is still expected as the first argument.

Expected behavior

I would expect that pk would be expected as the first argument.

Steps to reproduce:

Type the above

Logs

Not really applicable I wouldn't think.

I don't expect every decorator to be handled perfectly, but I would think that @classmethod is common enough that it should be handled properly.

Activity

  1. changed the title [-]@Classmethod decorators not being properly treated[/-] [+]@classmethod decorators not being properly treated[/+] on Dec 30, 2017
  2. siftikha commented on Jan 1, 2018

    @siftikha
    Author

    This apparently is a known low priority issue davidhalter/jedi#498 in jedi

  3. brettcannon commented on Jul 29, 2019

    @brettcannon
    Member

    Closing as this is an upstream issue which we don't have direct control or influence over.

  4. locked as resolved and limited conversation to collaborators on Aug 5, 2019
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

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions