mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-21 17:17:39 +02:00
Poolscanner: Document the typing issue of python3.5's IntEnum over IntFlag
This commit is contained in:
@@ -19,6 +19,7 @@ vollog = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# TODO: When python3.5 is no longer supported, make this enum.IntFlag
|
||||
# Revisit the page_type signature of PoolConstraint once using enum.IntFlag
|
||||
class PoolType(enum.IntEnum):
|
||||
"""Class to maintain the different possible PoolTypes The values must be
|
||||
integer powers of 2."""
|
||||
@@ -36,7 +37,7 @@ class PoolConstraint:
|
||||
tag: bytes,
|
||||
type_name: str,
|
||||
object_type: Optional[str] = None,
|
||||
page_type: Optional[PoolType] = None,
|
||||
page_type: Optional[int] = None,
|
||||
size: Optional[Tuple[Optional[int], Optional[int]]] = None,
|
||||
index: Optional[Tuple[Optional[int], Optional[int]]] = None,
|
||||
alignment: Optional[int] = 1) -> None:
|
||||
|
||||
Reference in New Issue
Block a user