Skip to content

Commit 6b8cadc

Browse files
Mike ProsserMike Prosser
authored andcommitted
refactor: add type hints to measure_get_value_time function
1 parent c04a7c6 commit 6b8cadc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/performance_checker/performance_checker_panel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
import statistics
44
import time
5+
from typing import Any, Tuple
56

67
import streamlit as st
78
from streamlit_echarts import st_echarts
89

910
import nipanel
1011

1112

12-
def measure_get_value_time(panel, value_id, default_value=None):
13+
def measure_get_value_time(
14+
panel: "nipanel.StreamlitPanelValueAccessor", value_id: str, default_value: Any = None
15+
) -> Tuple[Any, float]:
1316
"""Measure the time it takes to get a value from the panel.
1417
1518
Args:

0 commit comments

Comments
 (0)