From 0dff45c43b143ac7d80e548eea1aa8e22aa66d0d Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Thu, 28 Nov 2024 13:46:58 +0000 Subject: [PATCH] deps: add back typing-extensions --- pysr/expression_specs.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pysr/expression_specs.py b/pysr/expression_specs.py index a4c77189..858bcf73 100644 --- a/pysr/expression_specs.py +++ b/pysr/expression_specs.py @@ -5,7 +5,7 @@ try: from typing import TypeAlias except ImportError: - TypeAlias = NewType("TypeAlias", Any) + from typing_extensions import TypeAlias import numpy as np import pandas as pd diff --git a/requirements.txt b/requirements.txt index aa92aaf1..96f4ed9a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ scikit_learn>=1.0.0,<2.0.0 juliacall==0.9.23 click>=7.0.0,<9.0.0 setuptools>=50.0.0 +typing-extensions>=4.0.0,<5.0.0