Mass reformat of typing imports

Relented on the strict import of direct objects/classes for the typing
module only.  Typing module components can be directly imported because
it makes the code really painful to read and write otherwise.

This is still in-line with the python style guide adopted from Google at
http://google.github.io/styleguide/pyguide.html section 2.2.
This commit is contained in:
Mike Auty
2018-12-16 13:04:22 +00:00
parent 0abaa3af2f
commit 29d41470a4
87 changed files with 623 additions and 676 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ typically found in Linux's /proc file system.
import datetime
import struct
import typing
from typing import List
from volatility.framework import constants, renderers, symbols, interfaces
from volatility.framework.configuration import requirements
@@ -20,7 +20,7 @@ class Bash(plugins.PluginInterface, timeliner.TimeLinerInterface):
"""Recovers bash command history from memory"""
@classmethod
def get_requirements(cls) -> typing.List[interfaces.configuration.RequirementInterface]:
def get_requirements(cls) -> List[interfaces.configuration.RequirementInterface]:
return [requirements.TranslationLayerRequirement(name = 'primary',
description = 'Kernel Address Space',
architectures = ["Intel32", "Intel64"]),