Skip to content

Commit 234d43c

Browse files
chore: fix remaining typing imports in test files
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent 4c993ee commit 234d43c

File tree

52 files changed

+91
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+91
-52
lines changed

unit_tests/connector_builder/test_message_grouper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44

55
import json
6-
from typing import Any, List
6+
from typing import Any
7+
from collections.abc import list
78
from collections.abc import Iterator, Mapping
89
from unittest.mock import MagicMock, Mock, patch
910

unit_tests/destinations/test_destination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import json
88
from os import PathLike
99
from pathlib import Path
10-
from typing import Any, Dict, List, Union
10+
from typing import Any
11+
from collections.abc import dict, List, Union
1112
from collections.abc import Iterable, Mapping
1213
from unittest.mock import ANY
1314

unit_tests/destinations/vector_db_based/document_processor_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5-
from typing import Any, List, Optional
5+
from typing import Any
6+
from collections.abc import list, Optional
67
from collections.abc import Mapping
78
from unittest.mock import MagicMock
89

unit_tests/sources/concurrent_source/test_concurrent_source_adapter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44

55
import logging
6-
from typing import Any, List, Optional, Tuple
6+
from typing import Any
7+
from collections.abc import list, Optional, Tuple
78
from collections.abc import Mapping
89
from unittest.mock import Mock
910

unit_tests/sources/declarative/async_job/test_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33

44
import logging
5-
from typing import Any, List, Optional, Set, Tuple
5+
from typing import Any
6+
from collections.abc import list, Optional, Set, Tuple
67
from collections.abc import Iterable, Mapping
78
from unittest import TestCase, mock
89

unit_tests/sources/declarative/async_job/test_job_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import threading
66
import time
7-
from typing import List, Optional, Set, Tuple
7+
from collections.abc import list, Optional, Set, Tuple
88
from collections.abc import Callable, Mapping
99
from unittest import TestCase, mock
1010
from unittest.mock import MagicMock, Mock, call

unit_tests/sources/declarative/async_job/test_job_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
22

3-
from typing import List
3+
from collections.abc import list
44
from unittest import TestCase
55

66
import pytest

unit_tests/sources/declarative/extractors/test_dpath_extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44
import io
55
import json
6-
from typing import Dict, List, Union
6+
from collections.abc import dict
7+
from collections.abc import list, Union
78

89
import pytest
910
import requests

unit_tests/sources/declarative/extractors/test_record_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
4-
from typing import List, Optional
4+
from collections.abc import list, Optional
55
from collections.abc import Mapping
66

77
import pytest

unit_tests/sources/declarative/incremental/test_concurrent_perpartitioncursor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import copy
33
from copy import deepcopy
44
from datetime import datetime, timedelta
5-
from typing import Any, List, Optional, Union
5+
from typing import Any
6+
from collections.abc import list, Optional, Union
67
from collections.abc import Mapping, MutableMapping
78
from unittest.mock import MagicMock, patch
89
from urllib.parse import unquote

0 commit comments

Comments
 (0)