mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 02:40:04 +08:00
44 lines
744 B
Python
Vendored
44 lines
744 B
Python
Vendored
"""
|
|
Issues with the parser and not the type inference should be part of this file.
|
|
"""
|
|
|
|
class IndentIssues():
|
|
"""
|
|
issue jedi-vim#288
|
|
Which is really a fast parser issue. It used to start a new block at the
|
|
parentheses, because it had problems with the indentation.
|
|
"""
|
|
def one_param(
|
|
self,
|
|
):
|
|
return 1
|
|
|
|
def with_param(
|
|
self,
|
|
y):
|
|
return y
|
|
|
|
|
|
|
|
#? int()
|
|
IndentIssues().one_param()
|
|
|
|
#? str()
|
|
IndentIssues().with_param('')
|
|
|
|
|
|
"""
|
|
Just because there's a def keyword, doesn't mean it should not be able to
|
|
complete to definition.
|
|
"""
|
|
definition = 0
|
|
#? ['definition']
|
|
str(def
|
|
|
|
|
|
# It might be hard to determine the value
|
|
class Foo(object):
|
|
@property
|
|
#? ['str']
|
|
def bar(x=str
|