This is a minimal reprex for issue #849 in the aws-lambda-powertools
package.
The only python file is copied from the docs.
The pydantic
plugin for mypy
is configured via pyproject.toml
; everything else is "vanilla".
- have a recent version of
poetry
and a 3.9.* version of python available - clone this repo and
cd
into it poetry install
to install the deps into an environmentpoetry run mypy extending_builtin_models.py
You should see an error like
extending_builtin_models.py:17: error: Incompatible types in assignment (expression has type "Order", base class "EventBridgeModel" defined the type as "Dict[str, Any]")
Found 1 error in 1 file (checked 1 source file)