From 3b9e4b9744815febf4a99fab71c8cbd8c53e8dc0 Mon Sep 17 00:00:00 2001 From: Jens Feodor Nielsen Date: Tue, 19 Nov 2024 16:06:32 +0100 Subject: [PATCH] import future annotations in test files --- python/tests/test_collection_files.py | 9 +++++++-- python/tests/test_fs_client.py | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python/tests/test_collection_files.py b/python/tests/test_collection_files.py index d9138a2..9a71d64 100644 --- a/python/tests/test_collection_files.py +++ b/python/tests/test_collection_files.py @@ -1,5 +1,6 @@ -from pathlib import Path -from typing import Any, Generator +from __future__ import annotations + +from typing import TYPE_CHECKING, Any, Generator from unittest.mock import MagicMock, Mock, patch import pytest @@ -21,6 +22,10 @@ from numerous.jsonbase64 import dict_to_base64 +if TYPE_CHECKING: + from pathlib import Path + + ORGANIZATION_ID = "test-org-id" COLLECTION_KEY = "test-collection-key" NESTED_COLLECTION_ID = "nested_test_collection" diff --git a/python/tests/test_fs_client.py b/python/tests/test_fs_client.py index 71eb960..0fa5aff 100644 --- a/python/tests/test_fs_client.py +++ b/python/tests/test_fs_client.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import json from pathlib import Path from typing import Any