Commit 649679d3 authored by Michal Čihař's avatar Michal Čihař

Improve docs for autofixes (issue #257)

parent 08996bc8
......@@ -3,16 +3,16 @@
class AutoFix(object):
'''
basic class for AutoFixes
Base class for AutoFixes
'''
def fix_single_target(self, target, unit):
'''
fix a single target, implement this method with subclasses
Fix a single target, implement this method in subclasses.
'''
raise NotImplementedError()
def fix_target(self, target, unit):
'''
returns a target translation array with a single fix applied
Returns a target translation array with a single fix applied.
'''
return [self.fix_single_target(t, unit) for t in target]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment