Skip to content

Commit a326258

Browse files
committed
Try to fix ruff
1 parent d3b154a commit a326258

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: neural_network/input_data.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
import collections
2222
import gzip
2323
import os
24+
import typing
2425
import urllib
2526

2627
import numpy
2728
from tensorflow.python.framework import dtypes, random_seed
2829
from tensorflow.python.platform import gfile
2930
from tensorflow.python.util.deprecation import deprecated
3031

31-
_Datasets = collections.namedtuple("_Datasets", ["train", "validation", "test"])
32+
_Datasets = typing.NamedTuple("_Datasets", ["train", "validation", "test"])
3233

3334
# CVDF mirror of http://yann.lecun.com/exdb/mnist/
3435
DEFAULT_SOURCE_URL = "https://storage.googleapis.com/cvdf-datasets/mnist/"

0 commit comments

Comments
 (0)