From db6bf1eb7d0be0fe11a1f6ee55f2627d9106abaa Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 23 Feb 2024 11:54:41 +0000 Subject: [PATCH] fold in feedback --- website/docs/docs/build/python-models.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/website/docs/docs/build/python-models.md b/website/docs/docs/build/python-models.md index dff34bb38bf..083ddd4473d 100644 --- a/website/docs/docs/build/python-models.md +++ b/website/docs/docs/build/python-models.md @@ -155,7 +155,7 @@ Referencing [ephemeral](/docs/build/materializations#ephemeral) models is curren -From dbt version 1.8, Python models also support dynamic referencing of models and configurations within Python f-strings. This allows for more nuanced and dynamic model configurations directly within your Python code. For example: +From dbt version 1.8, Python models also support dynamic configurations within Python f-strings. This allows for more nuanced and dynamic model configurations directly within your Python code. For example: @@ -242,7 +242,6 @@ def model(dbt, session): - #### Dynamic configurations @@ -254,10 +253,10 @@ In addition to the existing methods of configuring Python models, you also have def model(dbt, session): dbt.config(materialized="table") - # Dynamic configuration access within Python f-strings, which allows for real-time retrieval and use of configuration values. - print(f"Dynamic config value: {dbt.config.get('my_var')}") + # Dynamic configuration access within Python f-strings, + # which allows for real-time retrieval and use of configuration values. # Assuming 'my_var' is set to 5, this will print: Dynamic config value: 5 - + print(f"Dynamic config value: {dbt.config.get('my_var')}") ```