Skip to content

Commit 1ad3648

Browse files
committed
fix(ci): resolve failing tests for the derived-columns/decisions stack
- geopandas: re-export ParsedColumn and ParsedField so test_geopandas_module_exports' pandas->geopandas subset check passes - env/requirements: register the 'decisions' extra's typesafe-sdk so the nox requirements check is consistent with pyproject optional-dependencies - docs(decisions): use (str, enum.Enum) instead of enum.StrEnum, which does not exist on Python 3.10, fixing the Docs-3.10 mystnb notebook execution
1 parent abad7ab commit 1ad3648

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎docs/source/decisions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import pandas as pd
3333
import pandera.pandas as pa
3434
import pandera.decisions as decisions
3535
36-
class Department(enum.StrEnum):
36+
class Department(str, enum.Enum):
3737
billing = "billing"
3838
"""Payment, invoices or subscription issues."""
3939
technical = "technical"

‎environment.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ dependencies:
105105
# datafusion extra
106106
- narwhals-datafusion >= 0.1.5
107107

108+
# decisions extra
109+
- typesafe-sdk
110+
108111
# docs
109112
- furo
110113
- sphinxcontrib-typer >= 0.8.0

‎pandera/geopandas.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
Int64,
5252
MultiIndex,
5353
Object,
54+
ParsedColumn,
55+
ParsedField,
5456
Parser,
5557
SeriesSchema,
5658
String,
@@ -124,11 +126,13 @@
124126
"Hypothesis",
125127
"DataFrameModel",
126128
"Field",
129+
"ParsedField",
127130
"check",
128131
"dataframe_check",
129132
"parser",
130133
"dataframe_parser",
131134
"Column",
135+
"ParsedColumn",
132136
"Index",
133137
"MultiIndex",
134138
"infer_schema",

‎requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ dask[dataframe]
5656
distributed
5757
ibis-framework >= 9.0.0
5858
narwhals-datafusion >= 0.1.5
59+
typesafe-sdk
5960
furo
6061
sphinxcontrib-typer >= 0.8.0
6162
cairosvg

0 commit comments

Comments
 (0)