From 6373518dc32fde9a0517e010db65c23b6a11549f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 3 May 2021 02:36:17 +0400 Subject: [PATCH] Added order=True for FIleInfo to make sure that order of fields is preserved. --- scrapthechan/fileinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapthechan/fileinfo.py b/scrapthechan/fileinfo.py index 039d9a8..5fcace2 100644 --- a/scrapthechan/fileinfo.py +++ b/scrapthechan/fileinfo.py @@ -5,7 +5,7 @@ from dataclasses import dataclass __all__ = ["FileInfo"] -@dataclass(frozen=True) +@dataclass(frozen=True, order=True) class FileInfo: """Stores information about a file.