From 77d712d138b4f067ef3c015943a4e3ffb3a3c2c4 Mon Sep 17 00:00:00 2001 From: Aman Sachan Date: Sat, 16 May 2026 00:45:01 +0000 Subject: [PATCH] fix(langfuse): fix TypedDict attribute access in regression test TypedDict does not support attribute access (config.attr), must use dict-style access (config['key']). Fix the regression test that was failing after the None-guard fix was applied. --- .../test_langfuse_dynamic_credentials.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/logging_callback_tests/test_langfuse_dynamic_credentials.py b/tests/logging_callback_tests/test_langfuse_dynamic_credentials.py index e7b3adf5224..9f504b9bc5b 100644 --- a/tests/logging_callback_tests/test_langfuse_dynamic_credentials.py +++ b/tests/logging_callback_tests/test_langfuse_dynamic_credentials.py @@ -157,6 +157,6 @@ def test_get_dynamic_langfuse_logging_config_handles_none(monkeypatch): # Should not raise AttributeError config = LangFuseHandler.get_dynamic_langfuse_logging_config(None) - assert config.langfuse_public_key is None - assert config.langfuse_secret is None - assert config.langfuse_host is None + assert config["langfuse_public_key"] is None + assert config["langfuse_secret"] is None + assert config["langfuse_host"] is None