mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
Use object for Python 2 classes.
This commit is contained in:
@@ -102,7 +102,7 @@ class DocstringMixin(object):
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
class PythonMixin():
|
class PythonMixin(object):
|
||||||
def get_parent_scope(self, include_flows=False):
|
def get_parent_scope(self, include_flows=False):
|
||||||
"""
|
"""
|
||||||
Returns the underlying scope.
|
Returns the underlying scope.
|
||||||
@@ -259,7 +259,7 @@ class String(Literal):
|
|||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class _StringComparisonMixin:
|
class _StringComparisonMixin(object):
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
"""
|
"""
|
||||||
Make comparisons with strings easy.
|
Make comparisons with strings easy.
|
||||||
|
|||||||
Reference in New Issue
Block a user