Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 8d1388a

Browse files
vvkhgithub-actions[bot]
authored andcommitted
style fixes by ruff
1 parent d19b657 commit 8d1388a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

data_diff/databases/bigquery.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,17 @@ def parse_type(self, table_path: DbPath, info: RawColumnInfo) -> ColType:
123123
if m:
124124
precision = int(m.group(3)) if m.group(3) else None
125125
scale = int(m.group(4)) if m.group(4) else None
126-
126+
127127
if scale is not None:
128-
# NUMERIC(..., scale) — scale is set explicitly
129-
effective_precision = scale
128+
# NUMERIC(..., scale) — scale is set explicitly
129+
effective_precision = scale
130130
elif precision is not None:
131-
# NUMERIC(...) — scale is missing but precision is set
132-
# effectively the same as NUMERIC(..., 0)
133-
effective_precision = 0
131+
# NUMERIC(...) — scale is missing but precision is set
132+
# effectively the same as NUMERIC(..., 0)
133+
effective_precision = 0
134134
else:
135-
# NUMERIC → default scale is 9
136-
effective_precision = 9
135+
# NUMERIC → default scale is 9
136+
effective_precision = 9
137137
col_type = Decimal(precision=effective_precision)
138138
return col_type
139139

0 commit comments

Comments
 (0)