From 11cf5b1d5edd262e041c0734a07d55522b81abb8 Mon Sep 17 00:00:00 2001 From: Reid Johnson Date: Mon, 30 Sep 2024 21:46:43 -0500 Subject: [PATCH] Update typing for Python 3.9+ (#97) --- quantile_forest/tests/test_quantile_forest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantile_forest/tests/test_quantile_forest.py b/quantile_forest/tests/test_quantile_forest.py index 7e0a6b3..9536d17 100755 --- a/quantile_forest/tests/test_quantile_forest.py +++ b/quantile_forest/tests/test_quantile_forest.py @@ -3,7 +3,7 @@ import math import pickle import warnings -from typing import Any, Dict +from typing import Any import numpy as np import pytest @@ -41,7 +41,7 @@ X_california = california.data[perm] y_california = california.target[perm] -FOREST_REGRESSORS: Dict[str, Any] = { +FOREST_REGRESSORS: dict[str, Any] = { "ExtraTreesQuantileRegressor": ExtraTreesQuantileRegressor, "RandomForestQuantileRegressor": RandomForestQuantileRegressor, }