Skip to content

Commit

Permalink
fix: remove unused type-ignores for mypy 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tconbeer committed Apr 16, 2024
1 parent cee772a commit 405b535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,21 @@ def small_sqlite(tmp_path: Path, data_dir: Path) -> Path:
@pytest.fixture
def duckdb_adapter() -> type[HarlequinAdapter]:
eps = entry_points(group="harlequin.adapter")
cls: type[HarlequinAdapter] = eps["duckdb"].load() # type: ignore
cls: type[HarlequinAdapter] = eps["duckdb"].load()
return cls


@pytest.fixture
def sqlite_adapter() -> type[HarlequinAdapter]:
eps = entry_points(group="harlequin.adapter")
cls: type[HarlequinAdapter] = eps["sqlite"].load() # type: ignore
cls: type[HarlequinAdapter] = eps["sqlite"].load()
return cls


@pytest.fixture(params=["duckdb", "sqlite"])
def all_adapters(request: pytest.FixtureRequest) -> type[HarlequinAdapter]:
eps = entry_points(group="harlequin.adapter")
cls: type[HarlequinAdapter] = eps[request.param].load() # type: ignore
cls: type[HarlequinAdapter] = eps[request.param].load()
return cls


Expand Down

0 comments on commit 405b535

Please sign in to comment.