mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Merge branch 'master' of github.com:davidhalter/jedi
This commit is contained in:
@@ -57,19 +57,15 @@ Others
|
|||||||
We are in the discussion of adding |jedi| to the Fedora repositories.
|
We are in the discussion of adding |jedi| to the Fedora repositories.
|
||||||
|
|
||||||
|
|
||||||
Manual installation from a downloaded package
|
Manual installation from GitHub
|
||||||
---------------------------------------------
|
---------------------------------------------
|
||||||
|
|
||||||
If you prefer not to use an automated package installer, you can `download
|
If you prefer not to use an automated package installer, you can clone the source from GitHub and install it manually. To install it, run these commands::
|
||||||
<https://github.com/davidhalter/jedi/archive/master.zip>`__ a current copy of
|
|
||||||
|jedi| and install it manually.
|
|
||||||
|
|
||||||
To install it, navigate to the directory containing `setup.py` on your console
|
|
||||||
and type::
|
|
||||||
|
|
||||||
|
git clone --recurse-submodules https://github.com/davidhalter/jedi
|
||||||
|
cd jedi
|
||||||
sudo python setup.py install
|
sudo python setup.py install
|
||||||
|
|
||||||
|
|
||||||
Inclusion as a submodule
|
Inclusion as a submodule
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -233,14 +233,16 @@ class ClassContext(use_metaclass(CachedMetaClass, ClassMixin, FunctionAndClassBa
|
|||||||
if arglist:
|
if arglist:
|
||||||
from jedi.evaluate import arguments
|
from jedi.evaluate import arguments
|
||||||
args = arguments.TreeArguments(self.evaluator, self.parent_context, arglist)
|
args = arguments.TreeArguments(self.evaluator, self.parent_context, arglist)
|
||||||
return [value for key, value in args.unpack() if key is None]
|
lst = [value for key, value in args.unpack() if key is None]
|
||||||
else:
|
if lst:
|
||||||
if self.py__name__() == 'object' \
|
return lst
|
||||||
and self.parent_context == self.evaluator.builtins_module:
|
|
||||||
return []
|
if self.py__name__() == 'object' \
|
||||||
return [LazyKnownContexts(
|
and self.parent_context == self.evaluator.builtins_module:
|
||||||
self.evaluator.builtins_module.py__getattribute__('object')
|
return []
|
||||||
)]
|
return [LazyKnownContexts(
|
||||||
|
self.evaluator.builtins_module.py__getattribute__('object')
|
||||||
|
)]
|
||||||
|
|
||||||
def py__getitem__(self, index_context_set, contextualized_node):
|
def py__getitem__(self, index_context_set, contextualized_node):
|
||||||
from jedi.evaluate.gradual.typing import LazyGenericClass
|
from jedi.evaluate.gradual.typing import LazyGenericClass
|
||||||
|
|||||||
@@ -276,3 +276,17 @@ qsplit = shlex.split("foo, ferwerwerw werw werw e")
|
|||||||
for part in qsplit:
|
for part in qsplit:
|
||||||
#? str()
|
#? str()
|
||||||
part
|
part
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# Unknown metaclass
|
||||||
|
# -----------------
|
||||||
|
|
||||||
|
# Github issue 1321
|
||||||
|
class Meta(object):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class Test(metaclass=Meta):
|
||||||
|
def test_function(self):
|
||||||
|
result = super(Test, self).test_function()
|
||||||
|
#? []
|
||||||
|
result.
|
||||||
|
|||||||
Reference in New Issue
Block a user