Skip to content

Hunt down social media accounts by username across social networks

Fix Python 3.9 type annotation compatibility

HARRISON BENNETT J726d053865f3
diff --git a/sherlock_project/sites.py b/sherlock_project/sites.py
index 77b935c6..7712974c 100644
--- a/sherlock_project/sites.py
+++ b/sherlock_project/sites.py
@@ -6,6 +6,7 @@ This is the raw data that will be used to search for usernames.
import json
import requests
import secrets
+from typing import Optional
MANIFEST_URL = "https://data.sherlockproject.xyz"
@@ -77,7 +78,7 @@ class SiteInformation:
class SitesInformation:
def __init__(
self,
- data_file_path: str|None = None,
+ data_file_path: Optional[str] = None,
honor_exclusions: bool = True,
do_not_exclude: list[str] = [],
):