Skip to content

Commit 10e3dfa

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: remove load_dotenv() in feature_decorator.py
PiperOrigin-RevId: 794249376
1 parent 5fba196 commit 10e3dfa

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/google/adk/utils/feature_decorator.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
from typing import Union
2424
import warnings
2525

26-
from dotenv import load_dotenv
27-
2826
T = TypeVar("T", bound=Union[Callable, type])
2927

3028

@@ -67,9 +65,6 @@ def decorator(obj: T) -> T:
6765

6866
@functools.wraps(orig_init)
6967
def new_init(self, *args, **kwargs):
70-
# Load .env file if dotenv is available
71-
load_dotenv()
72-
7368
# Check if usage should be bypassed via environment variable at call time
7469
should_bypass = (
7570
bypass_env_var is not None
@@ -92,9 +87,6 @@ def new_init(self, *args, **kwargs):
9287

9388
@functools.wraps(obj)
9489
def wrapper(*args, **kwargs):
95-
# Load .env file if dotenv is available
96-
load_dotenv()
97-
9890
# Check if usage should be bypassed via environment variable at call time
9991
should_bypass = (
10092
bypass_env_var is not None

0 commit comments

Comments
 (0)