Skip to content

Commit

Permalink
use quoted type again
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Feb 19, 2025
1 parent ff82318 commit 3c39527
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions core/dbt/config/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from dataclasses import dataclass
from typing import Any, Dict, Optional, Tuple

from typing_extensions import Self

from dbt.adapters.contracts.connection import Credentials, HasCredentials
from dbt.clients.yaml_helper import load_yaml_text
from dbt.contracts.project import ProfileConfig
Expand Down Expand Up @@ -62,7 +60,7 @@ class Profile(HasCredentials):
credentials: Credentials
profile_env_vars: Dict[str, Any]
log_cache_events: bool
secondary_profiles: Dict[str, Self]
secondary_profiles: Dict[str, "Profile"]

def __init__(
self,
Expand Down Expand Up @@ -233,7 +231,7 @@ def from_credentials(
threads: int,
profile_name: str,
target_name: str,
) -> Self:
) -> "Profile":
"""Create a profile from an existing set of Credentials and the
remaining information.
Expand Down Expand Up @@ -304,7 +302,7 @@ def from_raw_profile_info(
target_override: Optional[str] = None,
threads_override: Optional[int] = None,
is_secondary: bool = False,
) -> Self:
) -> "Profile":
"""Create a profile from its raw profile information.
(this is an intermediate step, mostly useful for unit testing)
Expand Down Expand Up @@ -374,7 +372,7 @@ def from_raw_profiles(
renderer: ProfileRenderer,
target_override: Optional[str] = None,
threads_override: Optional[int] = None,
) -> Self:
) -> "Profile":
"""
:param raw_profiles: The profile data, from disk as yaml.
:param profile_name: The profile name to use.
Expand Down Expand Up @@ -415,7 +413,7 @@ def render(
profile_name_override: Optional[str] = None,
target_override: Optional[str] = None,
threads_override: Optional[int] = None,
) -> Self:
) -> "Profile":
"""Given the raw profiles as read from disk and the name of the desired
profile if specified, return the profile component of the runtime
config.
Expand Down

0 comments on commit 3c39527

Please sign in to comment.