File: context.py

package info (click to toggle)
python-jedi 0.19.1%2Bds1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,680 kB
  • sloc: python: 28,783; makefile: 172; ansic: 13
file content (55 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Base():
    myfoobar = 3


class X(Base):
    def func(self, foo):
        pass


class Y(X):
    def actual_function(self):
        pass

    #? []
    def actual_function
    #? ['func']
    def f

    #? ['__doc__']
    __doc__
    #? []
    def __doc__

    # This might or might not be what we wanted, currently properties are also
    # used like this. IMO this is not wanted ~dave.
    #? ['__class__']
    def __class__
    #? []
    __class__


    #? ['__repr__']
    def __repr__

    #? []
    def mro

    #? ['myfoobar']
    myfoobar

#? []
myfoobar

# -----------------
# Inheritance
# -----------------

class Super():
    enabled = True
    if enabled:
        yo_dude = 4

class Sub(Super):
    #? ['yo_dude']
    yo_dud