When the update
argument for Command
is provided as a TypedDict
, mypy raises a complaint
#2758
Open
4 tasks done
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
The program runs fine.
It's strange that we define the state format using
TypedDict
, yet receive warnings when usingTypedDict
as input, right?Because the internal type hints uses
dict
, mypy complains when receiving aTypedDict
.I think changing the type hint to
Mapping
could resolve this.If you agree with this change, I can quickly submit a simple PR to address the issue.
System Info
System Information
Package Information
The text was updated successfully, but these errors were encountered: