From e8fbbb7306430478dec55d2c963eed116d8330cc Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Tue, 8 Feb 2022 17:46:56 -0800 Subject: More cleanup, yey! --- histogram.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'histogram.py') diff --git a/histogram.py b/histogram.py index c673e16..f85abea 100644 --- a/histogram.py +++ b/histogram.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +"""A text-based simple histogram helper class.""" + import math -from numbers import Number from typing import Dict, Generic, Iterable, List, Optional, Tuple, TypeVar T = TypeVar("T", int, float) @@ -11,6 +12,8 @@ Count = int class SimpleHistogram(Generic[T]): + """A simple histogram.""" + # Useful in defining wide open bottom/top bucket bounds: POSITIVE_INFINITY = math.inf NEGATIVE_INFINITY = -math.inf -- cgit v1.3