fix: mypy issue on py3.9 + prevent similar issues (#29864)

This commit is contained in:
Maxime Beauchemin
2024-08-06 10:36:23 -07:00
committed by GitHub
parent fede4f9f1b
commit c7dc4dc7fc
4 changed files with 12 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
# under the License.
from datetime import datetime
from typing import Any, Optional
from typing import Any, Optional, Union
import pytest
from sqlalchemy import types
@@ -84,7 +84,7 @@ def test_convert_dttm(
def test_get_column_spec(
native_type: str,
sqla_type: type[types.TypeEngine],
attrs: dict[str, Any] | None,
attrs: Union[dict[str, Any], None],
generic_type: GenericDataType,
is_dttm: bool,
) -> None: