Skip to content

Commit

Permalink
Clean up files so that pre-commit hooks are clean. (#95)
Browse files Browse the repository at this point in the history
No more errors or warnings

Co-authored-by: nanne-aben <[email protected]>
  • Loading branch information
caneff and nanne-aben authored Oct 19, 2023
1 parent 2e0de13 commit fe97d15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

# This is a configuration file we shouldn't be checking it.
# mypy: ignore-errors

# -- Project information -----------------------------------------------------

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test_type_validation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd
import numpy as np # type: ignore

from typing import Any, Callable
from typing import Any, Callable, Union

from strictly_typed_pandas import DataSet, IndexedDataSet
from strictly_typed_pandas.pandas_types import (
Expand All @@ -28,7 +28,7 @@ def is_backward_compatibility_type(dtype) -> bool:
return False


def are_they_equal(observed, expected):
def are_they_equal(observed, expected) -> Union[bool, float]:
if is_backward_compatibility_type(observed) or is_backward_compatibility_type(expected):
return np.nan

Expand Down Expand Up @@ -125,6 +125,6 @@ def test_supported_index_data_type():
continue

class IndexSchema:
a: dtype
a: dtype # type: ignore

IndexedDataSet[IndexSchema, DataSchema]()

0 comments on commit fe97d15

Please sign in to comment.