Skip to content

Commit

Permalink
Merge pull request #5398 from jenshnielsen/fix_pandas_type_check
Browse files Browse the repository at this point in the history
Fix pandas type check
  • Loading branch information
jenshnielsen authored Sep 29, 2023
2 parents a5e9aa1 + a459fec commit 6b3d321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
if: ${{ !matrix.min-version }}
- uses: jakebailey/[email protected]
with:
version: 1.1.326
version: 1.1.329
if: ${{ !matrix.min-version }}
- name: Run Mypy
run: mypy -p qcodes
Expand Down
4 changes: 2 additions & 2 deletions qcodes/tests/dataset/helper_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from collections.abc import Mapping, Sequence
from collections.abc import Hashable, Mapping, Sequence
from functools import reduce
from operator import mul
from typing import TYPE_CHECKING
Expand Down Expand Up @@ -93,7 +93,7 @@ def verify_dataframe_for_single_param(
# check that the dataframe has the same elements as index and columns
pandas_index_names = list(dataframe.index.names)
pandas_column_names = list(dataframe)
pandas_names: list[str | float] = []
pandas_names: list[Hashable] = []
for i in pandas_index_names:
if i is not None:
pandas_names.append(i)
Expand Down

0 comments on commit 6b3d321

Please sign in to comment.