mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: mypy issue on py3.9 + prevent similar issues (#29864)
This commit is contained in:
committed by
GitHub
parent
fede4f9f1b
commit
c7dc4dc7fc
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user