Skip to content

Commit

Permalink
STYLE: NAV-150 - Some pylint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
clukas1 committed Aug 23, 2024
1 parent c84c589 commit 832a421
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public_transit_viewer/components/form_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def query_config_expandable(

columns = []
column_index = 0
for i in range(ceil(num_options / 2)):
for _ in range(ceil(num_options / 2)):
columns.extend(st.columns(2))

if router_info.supports_max_num_transfers:
Expand Down
6 changes: 3 additions & 3 deletions public_transit_viewer/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


@st.fragment
def output_connection(connection: Connection, key: str):
def output_connection(connection: Connection):
with st.container(border=True):
st.subheader(get_connection_header(connection))

Expand Down Expand Up @@ -43,7 +43,7 @@ def output_connection(connection: Connection, key: str):
)

show_legs(connection)
show_map(connection, key)
show_map(connection)


def get_connection_header(connection: Connection):
Expand Down Expand Up @@ -133,7 +133,7 @@ def show_leg(leg: Leg):
)


def show_map(connection: Connection, key: str):
def show_map(connection: Connection):
# build dataframe with all coordinates
centroid = (
(connection.from_coordinate.latitude + connection.to_coordinate.latitude) / 2,
Expand Down
4 changes: 2 additions & 2 deletions public_transit_viewer/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import streamlit as st
from public_transit_client.model import Connection
from streamlit_searchbox import st_searchbox # type: ignore
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
Expand Down Expand Up @@ -74,4 +74,4 @@
st.error("No connections found")
else:
for key, connection in enumerate(connections):
output_connection(connection, str(key))
output_connection(connection)

0 comments on commit 832a421

Please sign in to comment.