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.

Method mro not listed in auto completion list #338

Description

class A:
	pass
A.mro()

The item mro is not listed in auto completion list.
Note: __mro__ is listed.

This works in Jedi.

Activity

  1. MikhailArkhipov commented on Feb 19, 2019

    @MikhailArkhipov

    As in #337.

    dir(object) yields

    C:\Python3>python
    Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> dir(object)
    ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', 
    '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', 
    '__init_subclass__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', 
    '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', 
    '__str__', '__subclasshook__']
    

    So a) object is not automatically attached as base and b) mro and __dict__ are not in the above list so scraper misses them. They are, however, in the typeshed stub for builtins, so #533 is the actual solution

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

Metadata

Metadata

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