mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 06:47:42 +00:00
Partial fix for mypy issues
This commit is contained in:
@@ -5,12 +5,12 @@ from data.callsign import Callsign
|
||||
from data.lookup_credentials import LookupCredentials
|
||||
|
||||
|
||||
def get_call_info(callsign: str, lookup_credentials: LookupCredentials | None) -> Callsign:
|
||||
def get_call_info(callsign: str | None, lookup_credentials: LookupCredentials | None) -> Callsign:
|
||||
"""Utility method to get the best set of data for a callsign as we can, using all enabled providers.
|
||||
lookup_credentials is an optional object that carries the user's QRZ.com/HamQTH credentials, if they provided them,
|
||||
to enable lookup using those providers."""
|
||||
|
||||
callsign_data = Callsign(call=callsign)
|
||||
callsign_data = Callsign(call=callsign or "")
|
||||
|
||||
# First check our input looks like a real callsign
|
||||
if callsign and re.match(r"^[A-Za-z0-9/\-]*$", callsign):
|
||||
|
||||
Reference in New Issue
Block a user