Debian Codegraph @

test/completion/parser.py

raw symbols SCIP
1 """
2 Issues with the parser and not the type inference should be part of this file.
3 """
4
5 class IndentIssues():
6 """
7 issue jedi-vim#288
8 Which is really a fast parser issue. It used to start a new block at the
9 parentheses, because it had problems with the indentation.
10 """
11 def one_param(
12 self,
13 ):
14 return 1
15
16 def with_param(
17 self,
18 y):
19 return y
20
21
22
23 #? int()
24 IndentIssues().one_param()
25
26 #? str()
27 IndentIssues().with_param('')
28
29
30 """
31 Just because there's a def keyword, doesn't mean it should not be able to
32 complete to definition.
33 """
34 definition = 0
35 #? ['definition']
36 str(def
37
38
39 # It might be hard to determine the value
40 class Foo(object):
41 @property
42 #? ['str']
43 def bar(x=str