我正在使用bokeh库,它声明在内部使用mypy。因此,我推断它有很好的打字信息,我已经在查看源代码时确认了这一点。
然而,我注意到在我自己的导入bokeh的项目中使用mypy仍然会产生错误。
当我在项目中使用库时,我应该如何配置我身边的mypy,以便优雅而正确地使用bokeh输入?
例如,我收到这样的错误:
error: Incompatible types in assignment (expression has type "str", variable has type "Override[str]") [assignment]