Skip to content

Commit 5e325ae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 553ff17 commit 5e325ae

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: neural_network/input_data.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,7 @@ def _maybe_download(filename, work_directory, source_url):
263263
return filepath
264264

265265

266-
@deprecated(
267-
None, "Please use alternatives such as: tensorflow_datasets.load('mnist')"
268-
)
266+
@deprecated(None, "Please use alternatives such as: tensorflow_datasets.load('mnist')")
269267
def read_data_sets(
270268
train_dir,
271269
fake_data=False,

Diff for: strings/is_srilankan_phone_number.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ def is_sri_lankan_phone_number(phone: str) -> bool:
2222
False
2323
"""
2424

25-
pattern = re.compile(
26-
r"^(?:0|94|\+94|0{2}94)7(0|1|2|4|5|6|7|8)(-| |)\d{7}$"
27-
)
25+
pattern = re.compile(r"^(?:0|94|\+94|0{2}94)7(0|1|2|4|5|6|7|8)(-| |)\d{7}$")
2826

2927
return bool(re.search(pattern, phone))
3028

0 commit comments

Comments
 (0)