]> git.mxchange.org Git - fba.git/commitdiff
added variable types to function
authorEnju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com>
Thu, 31 Mar 2022 15:17:11 +0000 (17:17 +0200)
committerEnju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com>
Thu, 31 Mar 2022 15:17:11 +0000 (17:17 +0200)
fetch_blocks.py

index 0490209f19e56d44ddf17881ed3d642d69474e70..6a4735aca1d5744105c9664f7b7c8c020f27659f 100644 (file)
@@ -3,7 +3,7 @@ from json import loads
 from hashlib import sha256
 import sqlite3
 
-def get_type(domain):
+def get_type(domain: str) -> str:
     try:
         res = get("https://"+domain, timeout=5)
         if "pleroma" in res.text.lower():