Skip to content

Commit

Permalink
Merge pull request #11 from abhijitmajumdar/bugfix-py38-compatibility
Browse files Browse the repository at this point in the history
type-hinting fix to allow python3.8 compatibility
  • Loading branch information
adriangalilea committed Jul 11, 2024
1 parent b8c5fa9 commit a4b1d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/streamlit_shortcuts/streamlit_shortcuts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from typing import Callable, Dict

import streamlit.components.v1 as components
import streamlit as st
Expand All @@ -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.
Expand Down

0 comments on commit a4b1d22

Please sign in to comment.