From 28b162fb0f62f22416165ff89e712d80390a25e3 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Wed, 28 Feb 2024 18:02:29 -0500 Subject: [PATCH] Add type hints to app.py --- app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 58529b9..46456df 100644 --- a/app.py +++ b/app.py @@ -21,8 +21,8 @@ def main(): placeholder="Moon! Pick a moon!", help="Pick your current moon.", ) - moon_id = db.get_moon_id_by_name(moon_name) - run = Run(db.get_moon_by_id(moon_id)) + moon_id: int = db.get_moon_id_by_name(moon_name) + run: Run = Run(db.get_moon_by_id(moon_id)) st.markdown(f"## {run.moon.name} ({run.moon.tier})") @@ -45,8 +45,8 @@ def main(): db.get_scrap_list(), placeholder='Select a scrap name!' ) - scrap_id = db.get_scrap_id_by_name(scrap_name) - scrap = db.get_scrap_by_id(scrap_id) + scrap_id: int = db.get_scrap_id_by_name(scrap_name) + scrap: db.Scrap = db.get_scrap_by_id(scrap_id) st.write(scrap)