From 0d0335bca0cd7a24a580fa71bf2f4e77beaf9378 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Tue, 27 Aug 2024 22:32:48 -0400 Subject: [PATCH 1/2] 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 000000000..e69de29bb diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py index e36ca6cc8..723186187 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/2] 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 723186187..8ff0467ea 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.