mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-28 20:44:52 +02:00
Add type annotations to most of the automagic files.
This commit is contained in:
@@ -15,6 +15,7 @@ import logging
|
||||
import random
|
||||
import string
|
||||
import sys
|
||||
import typing
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
from volatility.framework import constants
|
||||
@@ -303,7 +304,7 @@ class RequirementInterface(validity.ValidityRoutines, metaclass = ABCMeta):
|
||||
|
||||
class InstanceRequirement(RequirementInterface):
|
||||
"""Class to represent a single simple type (such as a boolean, a string, an integer or a series of bytes)"""
|
||||
instance_type = bool
|
||||
instance_type: typing.Type = bool
|
||||
|
||||
def add_requirement(self, requirement):
|
||||
"""Always raises a TypeError as instance requirements cannot have children"""
|
||||
|
||||
Reference in New Issue
Block a user