Skip to content

Commit ee24140

Browse files
committed
Try to fix ruff
1 parent b3b220c commit ee24140

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: neural_network/input_data.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
from tensorflow.python.platform import gfile
2929
from tensorflow.python.util.deprecation import deprecated
3030

31-
_Datasets = typing.NamedTuple(
32-
"_Datasets", [("train", _DataSet), ("validation", _DataSet), ("test", _DataSet)])
31+
class _Datasets(typing.NamedTuple):
32+
train: "_DataSet"
33+
validation: "_DataSet"
34+
test: "_DataSet"
3335

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

0 commit comments

Comments
 (0)