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')}") ```