We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
raw_code
""
str
1 parent 1e713db commit 64b58ecCopy full SHA for 64b58ec
.changes/unreleased/Fixes-20250804-074254.yaml
@@ -0,0 +1,6 @@
1
+kind: Fixes
2
+body: Comply with strict `str` type when `block.contents` is `None`
3
+time: 2025-08-04T07:42:54.612616-06:00
4
+custom:
5
+ Author: wircho
6
+ Issue: "11492"
core/dbt/parser/base.py
@@ -244,7 +244,7 @@ def _create_parsetime_node(
244
"path": path,
245
"original_file_path": block.path.original_file_path,
246
"package_name": self.project.project_name,
247
- "raw_code": block.contents,
+ "raw_code": block.contents or "",
248
"language": language,
249
"unique_id": self.generate_unique_id(name),
250
"config": self.config_dict(config),
0 commit comments