-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional fix for quotation marks #307
Conversation
|
||
marks_total = marks_total + 1 | ||
|
||
return value, marks_total, marks_fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear what this function returns. A dataclass or named tuple would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this?
from typing import NamedTuple
# Define the named tuple class
class ReplacementResult(NamedTuple):
value: str
marks_total: int
marks_fixed: int
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's one way.
As the code is becoming more complicated, it's hard to tell if it does the right thing just from looking at it. Some unit tests would be helpful. |
No description provided.