From cc2a4f2bc78c94b17c17d2a74e1e4ea63b0d9df6 Mon Sep 17 00:00:00 2001 From: Peter Allen Webb Date: Wed, 31 Jan 2024 15:28:51 -0500 Subject: [PATCH] Formatting --- dbt_common/clients/jinja.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dbt_common/clients/jinja.py b/dbt_common/clients/jinja.py index 8b718333..44d3eade 100644 --- a/dbt_common/clients/jinja.py +++ b/dbt_common/clients/jinja.py @@ -542,10 +542,7 @@ def render_template(template, ctx: Dict[str, Any], node=None) -> str: _TESTING_BLOCKS_CACHE: Dict[int, List[Union[BlockData, BlockTag]]] = {} -def _get_blocks_hash(text: str, - allowed_blocks: Optional[Set[str]], - collect_raw_data: bool -) -> int: +def _get_blocks_hash(text: str, allowed_blocks: Optional[Set[str]], collect_raw_data: bool) -> int: """Provides a hash function over the arguments to extract_toplevel_blocks, in order to support caching.""" allowed_tuple = tuple(sorted(allowed_blocks) or []) return text.__hash__() + allowed_tuple.__hash__() + collect_raw_data.__hash__()