From afdfdb6b0271ff3cd9504368b858e629b57e571c Mon Sep 17 00:00:00 2001 From: adriangalilea Date: Mon, 17 Jun 2024 17:59:00 +0200 Subject: [PATCH] Merge pull request #11 from abhijitmajumdar/bugfix-py38-compatibility type-hinting fix to allow python3.8 compatibility --- src/streamlit_shortcuts/streamlit_shortcuts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/streamlit_shortcuts/streamlit_shortcuts.py b/src/streamlit_shortcuts/streamlit_shortcuts.py index 3e7d2a6..6356737 100644 --- a/src/streamlit_shortcuts/streamlit_shortcuts.py +++ b/src/streamlit_shortcuts/streamlit_shortcuts.py @@ -1,4 +1,4 @@ -from typing import Callable +from typing import Callable, Dict import streamlit.components.v1 as components import streamlit as st @@ -7,7 +7,7 @@ # TODO add keyboard hint to button (streamlit-extras) # https://arnaudmiribel.github.io/streamlit-extras/extras/keyboard_text/ -def add_keyboard_shortcuts(key_combinations: dict[str, str]): +def add_keyboard_shortcuts(key_combinations: Dict[str, str]): """ Add keyboard shortcuts to trigger Streamlit buttons.