From 3bfb644232254a3d63e02658edf58ccdebfcb4e8 Mon Sep 17 00:00:00 2001 From: Lukas Connolly Date: Fri, 23 Aug 2024 23:47:04 +0200 Subject: [PATCH] STYLE: NAV-150 - Remove some mypy type issues. --- public_transit_viewer/client.py | 1 + public_transit_viewer/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public_transit_viewer/client.py b/public_transit_viewer/client.py index 1f512e4..aa676ca 100644 --- a/public_transit_viewer/client.py +++ b/public_transit_viewer/client.py @@ -26,6 +26,7 @@ def get_client() -> PublicTransitClient: else: raise ValueError("NAVIQORE_HOST_URL not found in .env file or env") + assert service_host is not None LOG.info("Binding client to service at %s", service_host) return PublicTransitClient(service_host) diff --git a/public_transit_viewer/main.py b/public_transit_viewer/main.py index bd256db..e934871 100644 --- a/public_transit_viewer/main.py +++ b/public_transit_viewer/main.py @@ -1,6 +1,6 @@ import streamlit as st from public_transit_client.model import Connection -from streamlit_searchbox import st_searchbox +from streamlit_searchbox import st_searchbox # type: ignore from public_transit_viewer import LOGO_PATH from public_transit_viewer.client import get_connections, get_stop_suggestions