1
0

Added order=True for FIleInfo to make sure that order of fields is preserved.

This commit is contained in:
Alexander Andreev 2021-05-03 02:36:17 +04:00
parent caf18a1bf0
commit 6373518dc3
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -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.