However, I was getting this mypy error: `error: Unpacked dict entry 1 has incompatible type "QueryDict"; expected "SupportsKeysAndGetItem[Any, list[Any] | None]" [dict-item]`.
I was able to fix it by first making a mutable copy of the QueryDict and the using the `update` method.
Comment
Thanks for sharing, your solution worked for me!
However, I was getting this mypy error: `error: Unpacked dict entry 1 has incompatible type "QueryDict"; expected "SupportsKeysAndGetItem[Any, list[Any] | None]" [dict-item]`.
I was able to fix it by first making a mutable copy of the QueryDict and the using the `update` method.
```python
def __init__(self, data: http.QueryDict, **kwargs) -> None:
initial = kwargs.get("initial", {})
data_updated = data.copy()
data_updated.update(initial)
super().__init__(data_updated, **kwargs)
```