diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f05b6db..8832b06 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.8.0 hooks: - id: ruff args: ["--fix", "--output-format=full"] diff --git a/pymc_bart/tree.py b/pymc_bart/tree.py index 0e0a35c..d58749e 100644 --- a/pymc_bart/tree.py +++ b/pymc_bart/tree.py @@ -12,8 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +from collections.abc import Generator from functools import lru_cache -from typing import Dict, Generator, List, Optional, Tuple, Union +from typing import Dict, List, Optional, Tuple, Union import numpy as np import numpy.typing as npt