Skip to content

Commit

Permalink
feat: drop Python 3.8
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jan 30, 2025
1 parent beb6037 commit 007b739
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 20 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

Hist is an analyst-friendly front-end for
[boost-histogram](https://github.com/scikit-hep/boost-histogram), designed for
Python 3.8+ (3.6-3.7 users get older versions). See [what's new](https://hist.readthedocs.io/en/latest/changelog.html).
Python 3.9+ (3.6-3.8 users get older versions). See [what's new](https://hist.readthedocs.io/en/latest/changelog.html).

![Slideshow of features. See docs/banner_slides.md for text if the image is not readable.](https://github.com/scikit-hep/hist/raw/main/docs/_images/banner.gif)

Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/accumulators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ is internally used by the Double and Unlimited storages to perform sums when
needed. It uses a highly accurate Neumaier sum to compute the floating point
sum with a correction term. Since this accumulator is never returned by a
histogram, it is not available in a view form, but only as a single accumulator
for comparison and access to the algorithm. Usage example in Python 3.8,
showing how non-accurate sums fail to produce the obvious answer, 2.0::
for comparison and access to the algorithm. Usage example, showing how
non-accurate sums fail to produce the obvious answer, 2.0::

import math
import numpy as np
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -34,7 +33,7 @@ keywords = [
"boost-histogram",
"dask-histogram",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"boost-histogram>=1.3.1,<1.6",
"histoprint>=2.2.0",
Expand Down Expand Up @@ -118,7 +117,7 @@ filterwarnings = [
[tool.mypy]
warn_unused_configs = true
files = "src"
python_version = "3.8"
python_version = "3.9"
strict = true
enable_error_code = ["ignore-without-code", "truthy-bool", "redundant-expr"]
warn_unreachable = true
Expand All @@ -138,7 +137,7 @@ ignore_missing_imports = true


[tool.pylint]
py-version = "3.8"
py-version = "3.9"
extension-pkg-allow-list = ["boost_histogram._core"]
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
Expand Down
10 changes: 3 additions & 7 deletions src/hist/basehist.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
import operator
import typing
import warnings
from collections.abc import Generator, Iterator, Mapping, Sequence
from typing import (
Any,
Callable,
Generator,
Iterator,
Mapping,
Protocol,
Sequence,
SupportsIndex,
Tuple,
Union,
)

Expand Down Expand Up @@ -48,8 +44,8 @@ def __lt__(self, __other: Any) -> bool: ...
SupportsIndex, str, Callable[[bh.axis.Axis], int], slice, "ellipsis"
]
IndexingWithMapping = Union[InnerIndexing, Mapping[Union[int, str], InnerIndexing]]
IndexingExpr = Union[IndexingWithMapping, Tuple[IndexingWithMapping, ...]]
AxisTypes = Union[AxisProtocol, Tuple[int, float, float]]
IndexingExpr = Union[IndexingWithMapping, tuple[IndexingWithMapping, ...]]
AxisTypes = Union[AxisProtocol, tuple[int, float, float]]


# Workaround for bug in mplhep
Expand Down
4 changes: 2 additions & 2 deletions src/hist/interop.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from collections.abc import Sequence
from typing import Any, Callable, Iterator, Protocol, TypeVar, cast
from collections.abc import Iterator, Sequence
from typing import Any, Callable, Protocol, TypeVar, cast

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion src/hist/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import inspect
import sys
from typing import Any, Callable, Iterable, Literal, NamedTuple, Union
from collections.abc import Iterable
from typing import Any, Callable, Literal, NamedTuple, Union

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion src/hist/quick_construct.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Iterable
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any, Callable

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion src/hist/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import copy
import typing
from typing import Any, Iterator
from collections.abc import Iterator
from typing import Any

import histoprint
import numpy as np
Expand Down

0 comments on commit 007b739

Please sign in to comment.