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

Commit 94b7b1a

Browse files
committed
black
1 parent 0a7e182 commit 94b7b1a

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

data_diff/databases/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ def close(self):
277277
self._queue.shutdown()
278278

279279

280-
281280
CHECKSUM_HEXDIGITS = 15 # Must be 15 or lower
282281
MD5_HEXDIGITS = 32
283282

data_diff/databases/database_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def python_type(self) -> type:
6262
return decimal.Decimal
6363

6464

65-
6665
class StringType(ColType):
6766
pass
6867

@@ -183,7 +182,6 @@ def normalize_uuid(self, value: str, coltype: ColType_UUID) -> str:
183182
"""
184183
...
185184

186-
187185
def normalize_value_by_type(self, value: str, coltype: ColType) -> str:
188186
"""Creates an SQL expression, that converts 'value' to a normalized representation.
189187

data_diff/databases/presto.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ def _parse_type(
110110
prec, scale = map(int, m.groups())
111111
return n_cls(scale)
112112

113-
string_regexps = {
114-
r"varchar\((\d+)\)": Text,
115-
r"char\((\d+)\)": Text
116-
}
113+
string_regexps = {r"varchar\((\d+)\)": Text, r"char\((\d+)\)": Text}
117114
for regexp, n_cls in string_regexps.items():
118115
m = re.match(regexp + "$", type_repr)
119116
if m:

tests/test_database_types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def __next__(self) -> float:
158158
else:
159159
raise StopIteration
160160

161+
161162
class UUID_Faker:
162163
def __init__(self, max):
163164
self.max = max
@@ -169,7 +170,6 @@ def __iter__(self):
169170
return (uuid.uuid1(i) for i in range(self.max))
170171

171172

172-
173173
TYPE_SAMPLES = {
174174
"int": IntFaker(N_SAMPLES),
175175
"datetime_no_timezone": DateTimeFaker(N_SAMPLES),
@@ -275,7 +275,6 @@ def __iter__(self):
275275
"varchar",
276276
"varchar(100)",
277277
],
278-
279278
},
280279
db.Redshift: {
281280
"int": [
@@ -340,7 +339,6 @@ def __iter__(self):
340339
"varchar",
341340
"char(100)",
342341
],
343-
344342
},
345343
}
346344

0 commit comments

Comments
 (0)