diff --git a/lib/dev-requirements.txt b/lib/dev-requirements.txt index 2cdeb9db6c10..b956c528ae57 100644 --- a/lib/dev-requirements.txt +++ b/lib/dev-requirements.txt @@ -1,7 +1,7 @@ black>=22.3.0 pre-commit hypothesis>=6.17.4 -mypy>=1.4, <1.6 +mypy>=1.4 mypy-protobuf>=3.2 parameterized # Lower protobuf versions cause mypy issues during development builds diff --git a/lib/streamlit/delta_generator.py b/lib/streamlit/delta_generator.py index e9e7a1aaa65d..24d50b5cf590 100644 --- a/lib/streamlit/delta_generator.py +++ b/lib/streamlit/delta_generator.py @@ -403,7 +403,7 @@ def _get_delta_path_str(self) -> str: return str(dg._cursor.delta_path) if dg._cursor is not None else "[]" @overload - def _enqueue( # type: ignore[misc] + def _enqueue( self, delta_type: str, element_proto: Message, @@ -427,7 +427,7 @@ def _enqueue( # type: ignore[misc] ... @overload - def _enqueue( # type: ignore[misc] + def _enqueue( self, delta_type: str, element_proto: Message, diff --git a/lib/streamlit/elements/widgets/time_widgets.py b/lib/streamlit/elements/widgets/time_widgets.py index ba08cc35d1a5..bb5eb6a34e47 100644 --- a/lib/streamlit/elements/widgets/time_widgets.py +++ b/lib/streamlit/elements/widgets/time_widgets.py @@ -688,7 +688,7 @@ def parse_date_deterministic( elif isinstance(value, (datetime, date)): parsed = parse_date_deterministic(value) else: - parsed = [parse_date_deterministic(v) for v in value] + parsed = [parse_date_deterministic(cast(SingleDateValue, v)) for v in value] # TODO this is missing the error path, integrate with the dateinputvalues parsing