| 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 |
|
| 24 |
IndentIssues().one_param() |
| 25 |
|
| 26 |
|
| 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 |
|
| 36 |
str(def |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
class Foo(object): |
| 41 |
@property |
| 42 |
|
| 43 |
def bar(x=str |