From dc5419a173fdeec6ea7e50264d9f27a9b5f124bd Mon Sep 17 00:00:00 2001 From: Stefan de Reuver <9864602+Horofic@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:53:05 +0000 Subject: [PATCH 1/2] Remove None typehin --- dissect/shellitem/lnk/lnk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dissect/shellitem/lnk/lnk.py b/dissect/shellitem/lnk/lnk.py index c0a71d4..8d5578b 100644 --- a/dissect/shellitem/lnk/lnk.py +++ b/dissect/shellitem/lnk/lnk.py @@ -323,7 +323,7 @@ class LnkTargetIdList: size: Size of the TARGET_IDLIST structure """ - def __init__(self, fh: Optional[BinaryIO] = None, size: Optional[int] = None) -> None: + def __init__(self, fh: Optional[BinaryIO] = None, size: Optional[int] = None): self.target_idlist = None self.idlist = None self.size = None From d654c578e55d5de7408ffcd5e6796db8d5834357 Mon Sep 17 00:00:00 2001 From: Stefan de Reuver <9864602+Horofic@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:56:14 +0000 Subject: [PATCH 2/2] Remove None typehint --- dissect/shellitem/lnk/lnk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dissect/shellitem/lnk/lnk.py b/dissect/shellitem/lnk/lnk.py index 8d5578b..759b343 100644 --- a/dissect/shellitem/lnk/lnk.py +++ b/dissect/shellitem/lnk/lnk.py @@ -373,7 +373,7 @@ def __init__( linkinfo: Optional[LnkInfo] = None, stringdata: Optional[LnkStringData] = None, extradata: Optional[LnkExtraData] = None, - ) -> None: + ): self.fh = fh self.flags = None