From 8db6f39d90597b40af1d27ebb74b3706520c396a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Tovar?= Date: Mon, 13 Nov 2023 00:10:25 +0100 Subject: [PATCH] Mypy pass for the get_domain function --- dispatch/target_types/xnat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatch/target_types/xnat.py b/dispatch/target_types/xnat.py index 40500be8..e9f507a9 100644 --- a/dispatch/target_types/xnat.py +++ b/dispatch/target_types/xnat.py @@ -22,12 +22,12 @@ logger = config.get_logger() -def get_domain(url): +def get_domain(url: str) -> str: parsed_url = urlparse(url) if parsed_url.scheme and parsed_url.netloc: return parsed_url.netloc else: - return None + return "" @handler_for(XnatTarget)