代码拉取完成,页面将自动刷新
Script.get_context
to get information where you currently are.d = {1000: 3}; d[10
will
expand to 1000
.__getattr__(self, name)
method that does a return getattr(x, name)
.
after loading them initially.jedi.Script
are now deprecatedcompletions
deprecated, use complete
insteadgoto_assignments
deprecated, use goto
insteadgoto_definitions
deprecated, use infer
insteadcall_signatures
deprecated, use get_signatures
insteadusages
deprecated, use get_references
insteadjedi.names
deprecated, use jedi.Script(...).get_names()
BaseDefinition.goto_assignments
renamed to BaseDefinition.goto
Definition.goto
. Now its signature matches
Script.goto
.settings.no_completion_duplicates
. It wasn't tested and nobody
was probably using it anyway.settings.use_filesystem_cache
and
settings.additional_dynamic_modules
, they have no usage anymore. Pretty
much nobody was probably using them.Script(...).completions(fuzzy=True)
Completion.type
now:
path
. Example: '/ho
-> '/home/
*args
/**kwargs
resolving. If possible Jedi replaces the parameters
with the actual alternatives.New APIs:
Definition.get_signatures() -> List[Signature]
. Signatures are similar to
CallSignature
. Definition.params
is therefore deprecated.Signature.to_string()
to format signatures.Signature.params -> List[ParamDefinition]
, ParamDefinition has the
following additional attributes infer_default()
, infer_annotation()
,
to_string()
, and kind
.Definition.execute() -> List[Definition]
, makes it possible to infer
return values of functions.goto_*(prefer_stubs=True)
as well as goto_*(prefer_stubs=True)
include_builtins
as a parameter to usages.goto_assignments
has a new follow_builtin_imports
parameter that
changes the previous behavior slightly.parso
.yield from
PEP 380.get_line_code
to Definition
and Completion
objects.InferState.modules
import cache, which resembles sys.modules
.jedi.names
, a command to do static analysis. Thanks to that
sourcegraph guys for sponsoring this!__getattr__
strings possible.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。