Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Annotate event.data type as Mapping instead of dict
We had a recent bug where LTIEvent.from_request modified the passed in data parameter. Annotating the type as Mapping raises an type error trying to reassign keys with the following error: Unsupported target for indexed assignment ("Mapping[Any, Any] | None") [index] While this doesn't prevent the issue in the whole codebase it's a good practice to annotate types with the most restrictive one.
- Loading branch information