Skip to content

Commit

Permalink
Fix various Pylint and mypy violations in model.py
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
  • Loading branch information
deepyaman committed Dec 20, 2023
1 parent ebd1675 commit bd2feb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pandera/api/ibis/model.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
"""Class-based API for Ibis models."""

from typing import (

Check warning on line 3 in pandera/api/ibis/model.py

View check run for this annotation

Codecov / codecov/patch

pandera/api/ibis/model.py#L3

Added line #L3 was not covered by tests
Any,
Callable,
Dict,
Tuple,
Type,
TypeVar,
)

from pandera.api.base.model import BaseModel
from pandera.api.ibis.container import DataFrameSchema

Check warning on line 13 in pandera/api/ibis/model.py

View check run for this annotation

Codecov / codecov/patch

pandera/api/ibis/model.py#L12-L13

Added lines #L12 - L13 were not covered by tests

_CONFIG_KEY = "Config"

Check warning on line 15 in pandera/api/ibis/model.py

View check run for this annotation

Codecov / codecov/patch

pandera/api/ibis/model.py#L15

Added line #L15 was not covered by tests

MODEL_CACHE: Dict[Type["DataFrameModel"], DataFramSchema] = {}
MODEL_CACHE: Dict[Type["DataFrameModel"], DataFrameSchema] = {}
GENERIC_SCHEMA_CACHE: Dict[

Check warning on line 18 in pandera/api/ibis/model.py

View check run for this annotation

Codecov / codecov/patch

pandera/api/ibis/model.py#L17-L18

Added lines #L17 - L18 were not covered by tests
Tuple[Type["DataFrameModel"], Tuple[Type[Any], ...]],
Type["DataFrameModel"],
Expand All @@ -28,5 +31,3 @@ class DataFrameModel(BaseModel):
See the :ref:`User Guide <dataframe_models>` for more.
"""

...

0 comments on commit bd2feb3

Please sign in to comment.