Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicBboy committed Jun 17, 2021
1 parent 186554c commit e87398f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def tests(session: Session, extra: str) -> None:
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-append",
"-s",
]
if not CI_RUN:
args.append("--cov-report=html")
Expand Down
1 change: 0 additions & 1 deletion pandera/engines/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def dtype(cls: _EngineType, data_type: Any) -> _DataType:
equivalent_data_type = registry.equivalents.get(data_type)
if equivalent_data_type is not None:
return equivalent_data_type

try:
return registry.dispatch(data_type)
except (KeyError, ValueError):
Expand Down
5 changes: 5 additions & 0 deletions pandera/engines/pandas_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,3 +547,8 @@ def from_parametrized_dtype(cls, pd_dtype: pd.IntervalDtype):
"""Convert a :class:`pandas.IntervalDtype` to
a Pandera :class:`~pandera.engines.pandas_engine.Interval`."""
return cls(subtype=pd_dtype.subtype) # type: ignore


print("PANDAS ENGINE EQUIVALENTS")
for k, v in engine.Engine._registry[Engine].equivalents.items():
print(f"{k}: equivalents={v}")

0 comments on commit e87398f

Please sign in to comment.