Skip to content

Commit

Permalink
Renderers: Convert column to dataclass
Browse files Browse the repository at this point in the history
Slightly heavier weight classes rather than tuples, but allows greater
flexibility and future assignment of new attribtues.
  • Loading branch information
ikelos committed Feb 18, 2024
1 parent 262642e commit ac0c8ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion volatility3/framework/interfaces/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
suitable output.
"""

import dataclasses
import datetime
from abc import abstractmethod, ABCMeta
from collections import abc
Expand All @@ -26,7 +27,13 @@
Union,
)

Column = NamedTuple("Column", [("name", str), ("type", Any), ("extra", bool)])

@dataclasses.dataclass
class Column:
name: str
type: Any
extra: bool = True


RenderOption = Any

Expand Down

0 comments on commit ac0c8ee

Please sign in to comment.