Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed Sep 20, 2024
1 parent a05b09d commit ff01c09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions great_expectations/expectations/metrics/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from types import ModuleType
from typing import (
TYPE_CHECKING,
Annotated,
Any,
Dict,
Final,
Expand All @@ -17,13 +16,13 @@
Sequence,
Tuple,
Type,
TypeAlias,
overload,
)

import numpy as np
from dateutil.parser import parse
from packaging import version
from typing_extensions import Annotated, TypeAlias

import great_expectations.exceptions as gx_exceptions
from great_expectations.compatibility import aws, sqlalchemy, trino
Expand Down Expand Up @@ -92,7 +91,7 @@

MAX_IN_MEMORY_RECORDS_ALLOWED: Final[int] = 200

UnexpectedIndexList: TypeAlias = Annotated[list[dict[str, Any]], MAX_IN_MEMORY_RECORDS_ALLOWED]
UnexpectedIndexList: TypeAlias = Annotated[List[Dict[str, Any]], MAX_IN_MEMORY_RECORDS_ALLOWED]


def _is_databricks_dialect(dialect: ModuleType | sa.Dialect | Type[sa.Dialect]) -> bool:
Expand Down Expand Up @@ -1320,7 +1319,7 @@ def get_unexpected_indices_for_single_pandas_named_index(
exclude_unexpected_values: bool = False,
) -> UnexpectedIndexList:
"""
Builds unexpected_index list for Pandas Dataframe in situation where the named
Builds unexpected_index_list for Pandas Dataframe in situation where the named
columns is also a named index. This method handles the case when there is a single named index.
Args:
domain_records_df: reference to Pandas dataframe
Expand Down

0 comments on commit ff01c09

Please sign in to comment.