Skip to content

Commit 7eb9f46

Browse files
committed
Fix lint
1 parent 2cf52e3 commit 7eb9f46

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

tests/test_source_azure_key_vault.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
Test pydantic_settings.AzureKeyVaultSettingsSource.
33
"""
44

5-
from __future__ import annotations
6-
7-
from typing import TYPE_CHECKING
5+
from typing import Type
86

97
import pytest
108
from pydantic import BaseModel, Field
9+
from pytest_mock import MockerFixture
1110

1211
from pydantic_settings import (
1312
AzureKeyVaultSettingsSource,
@@ -25,9 +24,6 @@
2524
except ImportError:
2625
azure_key_vault = False
2726

28-
if TYPE_CHECKING:
29-
from pytest_mock import MockerFixture
30-
3127

3228
MODULE = 'pydantic_settings.sources'
3329

@@ -93,7 +89,7 @@ class AzureKeyVaultSettings(BaseSettings):
9389
@classmethod
9490
def settings_customise_sources(
9591
cls,
96-
settings_cls: type[BaseSettings],
92+
settings_cls: Type[BaseSettings],
9793
init_settings: PydanticBaseSettingsSource,
9894
env_settings: PydanticBaseSettingsSource,
9995
dotenv_settings: PydanticBaseSettingsSource,

tests/test_source_pyproject_toml.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Test pydantic_settings.PyprojectTomlConfigSettingsSource.
33
"""
44

5-
from __future__ import annotations
6-
75
import sys
8-
from typing import TYPE_CHECKING, Optional, Tuple, Type
6+
from pathlib import Path
7+
from typing import Optional, Tuple, Type
98

109
import pytest
1110
from pydantic import BaseModel
11+
from pytest_mock import MockerFixture
1212

1313
from pydantic_settings import (
1414
BaseSettings,
@@ -22,11 +22,6 @@
2222
except ImportError:
2323
tomli = None
2424

25-
if TYPE_CHECKING:
26-
from pathlib import Path
27-
28-
from pytest_mock import MockerFixture
29-
3025

3126
MODULE = 'pydantic_settings.sources'
3227

0 commit comments

Comments
 (0)