Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Sep 30, 2024
1 parent 2cf52e3 commit fe3b10d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
12 changes: 4 additions & 8 deletions tests/test_source_azure_key_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
Test pydantic_settings.AzureKeyVaultSettingsSource.
"""

from __future__ import annotations

from typing import TYPE_CHECKING
from typing import Tuple, Type

import pytest
from pydantic import BaseModel, Field
from pytest_mock import MockerFixture

from pydantic_settings import (
AzureKeyVaultSettingsSource,
Expand All @@ -25,9 +24,6 @@
except ImportError:
azure_key_vault = False

if TYPE_CHECKING:
from pytest_mock import MockerFixture


MODULE = 'pydantic_settings.sources'

Expand Down Expand Up @@ -93,12 +89,12 @@ class AzureKeyVaultSettings(BaseSettings):
@classmethod
def settings_customise_sources(
cls,
settings_cls: type[BaseSettings],
settings_cls: Type[BaseSettings],
init_settings: PydanticBaseSettingsSource,
env_settings: PydanticBaseSettingsSource,
dotenv_settings: PydanticBaseSettingsSource,
file_secret_settings: PydanticBaseSettingsSource,
) -> tuple[PydanticBaseSettingsSource, ...]:
) -> Tuple[PydanticBaseSettingsSource, ...]:
return (
AzureKeyVaultSettingsSource(
settings_cls, 'https://my-resource.vault.azure.net/', DefaultAzureCredential()
Expand Down
11 changes: 3 additions & 8 deletions tests/test_source_pyproject_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Test pydantic_settings.PyprojectTomlConfigSettingsSource.
"""

from __future__ import annotations

import sys
from typing import TYPE_CHECKING, Optional, Tuple, Type
from pathlib import Path
from typing import Optional, Tuple, Type

import pytest
from pydantic import BaseModel
from pytest_mock import MockerFixture

from pydantic_settings import (
BaseSettings,
Expand All @@ -22,11 +22,6 @@
except ImportError:
tomli = None

if TYPE_CHECKING:
from pathlib import Path

from pytest_mock import MockerFixture


MODULE = 'pydantic_settings.sources'

Expand Down

0 comments on commit fe3b10d

Please sign in to comment.