From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- python/metadata.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'python/metadata.py') diff --git a/python/metadata.py b/python/metadata.py index c7820ee9..4c643112 100644 --- a/python/metadata.py +++ b/python/metadata.py @@ -27,9 +27,12 @@ from .enums import MetadataType MetadataValueType = Union[int, bool, str, bytes, float, List['MetadataValueType'], Tuple['MetadataValueType'], dict] + class Metadata: - def __init__(self, value:MetadataValueType=None, signed:Optional[bool]=None, - raw:Optional[bool]=None, handle:Optional[core.BNMetadata]=None): + def __init__( + self, value: MetadataValueType = None, signed: Optional[bool] = None, raw: Optional[bool] = None, + handle: Optional[core.BNMetadata] = None + ): if handle is not None: self.handle = handle elif isinstance(value, int): @@ -278,4 +281,4 @@ class Metadata: elif isinstance(key_or_index, int) and self.is_array: core.BNMetadataRemoveIndex(self.handle, key_or_index) else: - raise TypeError("remove only valid for dict and array objects") \ No newline at end of file + raise TypeError("remove only valid for dict and array objects") -- cgit v1.3.1