summaryrefslogtreecommitdiff
path: root/histogram.py
diff options
context:
space:
mode:
Diffstat (limited to 'histogram.py')
-rw-r--r--histogram.py5
1 files changed, 4 insertions, 1 deletions
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