Skip to content

Commit

Permalink
Use deprecated from typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Jan 6, 2025
1 parent bcc311c commit b614324
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artistools/estimators/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import pandas as pd
import polars as pl
from polars import selectors as cs
from typing_extensions import deprecated

import artistools as at

Expand Down Expand Up @@ -403,6 +404,7 @@ def scan_estimators(
return pldflazy.with_columns(nntot=pl.sum_horizontal(cs.starts_with("nnelement_"))).fill_null(0)


@deprecated("Use scan_estimators instead.")
def read_estimators(
modelpath: Path | str = Path(),
modelgridindex: int | Sequence[int] | None = None,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dependencies = [
"rich>=13.9.4",
"scipy>=1.14.1",
"tqdm>=4.67.1",
"typing_extensions>=4.12.2",
"zstandard>=0.23.0",
]

Expand Down

0 comments on commit b614324

Please sign in to comment.