mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-02 02:03:21 +08:00
Merge branch 'refactor'
This commit is contained in:
@@ -473,7 +473,7 @@ def test_func():
|
||||
#? int()
|
||||
tuple({1})[0]
|
||||
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
# -----------------
|
||||
# PEP 3132 Extended Iterable Unpacking (star unpacking)
|
||||
# -----------------
|
||||
|
||||
@@ -242,7 +242,7 @@ def x():
|
||||
# yield from
|
||||
# -----------------
|
||||
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
|
||||
def yield_from():
|
||||
yield from iter([1])
|
||||
|
||||
@@ -12,6 +12,8 @@ def from_names_goto():
|
||||
def builtin_test():
|
||||
#? ['math']
|
||||
import math
|
||||
#? ['mmap']
|
||||
import mmap
|
||||
|
||||
# -----------------
|
||||
# completions within imports
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
""" Pep-0484 type hinting """
|
||||
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
|
||||
|
||||
class A():
|
||||
|
||||
@@ -283,7 +283,7 @@ def testnewtype2(y):
|
||||
y
|
||||
#? []
|
||||
y.
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
|
||||
class TestDefaultDict(typing.DefaultDict[str, int]):
|
||||
def setdud(self):
|
||||
@@ -311,7 +311,7 @@ for key in x.keys():
|
||||
for value in x.values():
|
||||
#? int()
|
||||
value
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
|
||||
|
||||
"""
|
||||
@@ -341,9 +341,8 @@ typing.Optional[0]
|
||||
|
||||
TYPE_VARX = typing.TypeVar('TYPE_VARX')
|
||||
TYPE_VAR_CONSTRAINTSX = typing.TypeVar('TYPE_VAR_CONSTRAINTSX', str, int)
|
||||
# TODO there should at least be some results.
|
||||
#? []
|
||||
TYPE_VARX.
|
||||
#? ['__class__']
|
||||
TYPE_VARX.__clas
|
||||
#! ["TYPE_VARX = typing.TypeVar('TYPE_VARX')"]
|
||||
TYPE_VARX
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ def test_p(monkeypatch):
|
||||
#? ['setattr']
|
||||
monkeypatch.setatt
|
||||
|
||||
# python > 3.4
|
||||
# python > 2.7
|
||||
|
||||
#? ['capsysbinary']
|
||||
def test_p(capsysbin
|
||||
|
||||
@@ -359,7 +359,7 @@ class Test(metaclass=Meta):
|
||||
# Enum
|
||||
# -----------------
|
||||
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
import enum
|
||||
|
||||
class X(enum.Enum):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# python >= 3.4
|
||||
# python > 2.7
|
||||
from stub_folder import with_stub, stub_only, with_stub_folder, stub_only_folder
|
||||
|
||||
# -------------------------
|
||||
|
||||
Reference in New Issue
Block a user