Skip to content

Commit 52c4f5e

Browse files
committed
Fix lint
1 parent 2cf52e3 commit 52c4f5e

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

tests/test_source_azure_key_vault.py

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

5-
from __future__ import annotations
6-
7-
from typing import TYPE_CHECKING
8-
95
import pytest
106
from pydantic import BaseModel, Field
7+
from pytest_mock import MockerFixture
118

129
from pydantic_settings import (
1310
AzureKeyVaultSettingsSource,
@@ -25,9 +22,6 @@
2522
except ImportError:
2623
azure_key_vault = False
2724

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

3226
MODULE = 'pydantic_settings.sources'
3327

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)