Make end_pos public for syntax issues

This commit is contained in:
Dave Halter
2020-02-03 18:36:47 +01:00
parent c864ca60d1
commit 16f257356e

View File

@@ -119,7 +119,6 @@ class NormalizerConfig(object):
class Issue(object):
def __init__(self, node, code, message):
self._node = node
self.code = code
"""
An integer code that stands for the type of error.
@@ -133,6 +132,7 @@ class Issue(object):
The start position position of the error as a tuple (line, column). As
always in |parso| the first line is 1 and the first column 0.
"""
self.end_pos = node.end_pos
def __eq__(self, other):
return self.start_pos == other.start_pos and self.code == other.code