Skip to content
Snippets Groups Projects
Commit b601fdd8 authored by Simon Will's avatar Simon Will
Browse files

Fix style issues in Positon class in model.py

parent f38ac70d
No related branches found
No related tags found
No related merge requests found
Pipeline #444 canceled
......@@ -583,12 +583,12 @@ class Position:
else:
raise ValueError(
'The after type has to be "mora" or "element", but is {!r}'
.format(spec)
.format(type)
)
def __repr__(self):
return 'Position(' + ', '.join(
'{key}={val!r}'.format(key=attr, val=getattr(self, attr))
for attr in ['reading', 'mora', 'word_boundary', 'token', 'syllable',
'punctuation', 'meter', 'element']
for attr in ['reading', 'mora', 'word_boundary', 'token',
'syllable', 'punctuation', 'meter', 'element']
) + ')'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment