1
0
forked from VimPlug/jedi

Don't need to inherit from object anymore

This commit is contained in:
Dave Halter
2020-07-26 00:11:57 +02:00
parent e593396417
commit 9d1587a41d
36 changed files with 59 additions and 59 deletions
+5 -5
View File
@@ -23,7 +23,7 @@ def _merge_name_docs(names):
return doc
class AbstractNameDefinition(object):
class AbstractNameDefinition:
start_pos = None
string_name = None
parent_context = None
@@ -223,7 +223,7 @@ class AbstractTreeName(AbstractNameDefinition):
return self.tree_name.start_pos
class ValueNameMixin(object):
class ValueNameMixin:
def infer(self):
return ValueSet([self._value])
@@ -346,7 +346,7 @@ class TreeNameDefinition(AbstractTreeName):
return ''
class _ParamMixin(object):
class _ParamMixin:
def maybe_positional_argument(self, include_star=True):
options = [Parameter.POSITIONAL_ONLY, Parameter.POSITIONAL_OR_KEYWORD]
if include_star:
@@ -604,7 +604,7 @@ class SubModuleName(ImportName):
_level = 1
class NameWrapper(object):
class NameWrapper:
def __init__(self, wrapped_name):
self._wrapped_name = wrapped_name
@@ -615,7 +615,7 @@ class NameWrapper(object):
return '%s(%s)' % (self.__class__.__name__, self._wrapped_name)
class StubNameMixin(object):
class StubNameMixin:
def py__doc__(self):
from jedi.inference.gradual.conversion import convert_names
# Stubs are not complicated and we can just follow simple statements