mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 12:54:29 +08:00
Remove object inheritance
This commit is contained in:
@@ -38,7 +38,7 @@ def _check_error_leaves_nodes(node):
|
||||
return None
|
||||
|
||||
|
||||
class Differ(object):
|
||||
class Differ:
|
||||
grammar = load_grammar()
|
||||
|
||||
def initialize(self, code):
|
||||
|
||||
@@ -12,7 +12,7 @@ from parso.utils import python_bytes_to_unicode
|
||||
|
||||
|
||||
@total_ordering
|
||||
class WantedIssue(object):
|
||||
class WantedIssue:
|
||||
def __init__(self, code, line, column):
|
||||
self.code = code
|
||||
self._line = line
|
||||
|
||||
@@ -8,7 +8,7 @@ from parso import parse
|
||||
from parso.python import tree
|
||||
|
||||
|
||||
class TestsFunctionAndLambdaParsing(object):
|
||||
class TestsFunctionAndLambdaParsing:
|
||||
|
||||
FIXTURES = [
|
||||
('def my_function(x, y, z) -> str:\n return x + y * z\n', {
|
||||
|
||||
Reference in New Issue
Block a user