From b9f970d79ef7119600ef16cb6c136f316f0b609e Mon Sep 17 00:00:00 2001 From: Abhijit Majumdar Date: Mon, 17 Jun 2024 15:29:48 +0000 Subject: [PATCH] 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.