diff options
Diffstat (limited to 'src/flake8/statistics.py')
| -rw-r--r-- | src/flake8/statistics.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/flake8/statistics.py b/src/flake8/statistics.py index d555df2..d39750a 100644 --- a/src/flake8/statistics.py +++ b/src/flake8/statistics.py @@ -23,9 +23,10 @@ class Statistics(object): """Add the fact that the error was seen in the file. :param error: - The Error instance containing the information about the violation. + The Violation instance containing the information about the + violation. :type error: - flake8.style_guide.Error + flake8.style_guide.Violation """ key = Key.create_from(error) if key not in self._store: @@ -73,7 +74,7 @@ class Key(collections.namedtuple('Key', ['filename', 'code'])): @classmethod def create_from(cls, error): - """Create a Key from :class:`flake8.style_guide.Error`.""" + """Create a Key from :class:`flake8.style_guide.Violation`.""" return cls( filename=error.filename, code=error.code, @@ -115,7 +116,7 @@ class Statistic(object): @classmethod def create_from(cls, error): - """Create a Statistic from a :class:`flake8.style_guide.Error`.""" + """Create a Statistic from a :class:`flake8.style_guide.Violation`.""" return cls( error_code=error.code, filename=error.filename, |
