From 0d0335bca0cd7a24a580fa71bf2f4e77beaf9378 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Tue, 27 Aug 2024 22:32:48 -0400 Subject: [PATCH 1/3] Comply with PEP 561 --- sherlock_project/py.typed | 0 sherlock_project/sherlock.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 sherlock_project/py.typed diff --git a/sherlock_project/py.typed b/sherlock_project/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py index e36ca6cc..72318618 100644 --- a/sherlock_project/sherlock.py +++ b/sherlock_project/sherlock.py @@ -167,14 +167,14 @@ def multiple_usernames(username): def sherlock( - username, - site_data, + username: str, + site_data: dict, query_notify: QueryNotify, tor: bool = False, unique_tor: bool = False, dump_response: bool = False, - proxy=None, - timeout=60, + proxy: str = None, + timeout: int = 60, ): """Run Sherlock Analysis. @@ -474,7 +474,7 @@ def sherlock( raise ValueError( f"Unknown Error Type '{error_type}' for " f"site '{social_network}'" ) - + if dump_response: print("+++++++++++++++++++++") print(f"TARGET NAME : {social_network}") From 4660afb7d80b900c74385e4957adf564a94c76ff Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Fri, 30 Aug 2024 01:21:08 -0400 Subject: [PATCH 2/3] Fix implicit optional (PEP 484) Co-authored-by: GuardianWang <31812793+GuardianWang@users.noreply.github.com> --- sherlock_project/sherlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py index 72318618..8ff0467e 100644 --- a/sherlock_project/sherlock.py +++ b/sherlock_project/sherlock.py @@ -173,7 +173,7 @@ def sherlock( tor: bool = False, unique_tor: bool = False, dump_response: bool = False, - proxy: str = None, + proxy: Optional[str] = None, timeout: int = 60, ): """Run Sherlock Analysis. From a998ec309c4bee98b16380ed2f15a16041fba6b9 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Mon, 11 Nov 2024 17:16:31 -0500 Subject: [PATCH 3/3] fix: missing Optional typing import --- sherlock_project/sherlock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py index 8ff0467e..4eb06e84 100644 --- a/sherlock_project/sherlock.py +++ b/sherlock_project/sherlock.py @@ -24,6 +24,7 @@ import re from argparse import ArgumentParser, RawDescriptionHelpFormatter from json import loads as json_loads from time import monotonic +from typing import Optional import requests from requests_futures.sessions import FuturesSession