Commit 9fad9ff
authored
DEV: Use Mapping instead of dict in type hint of update_page_form_field_values (#3490)
Having the parameter typed as a dictionary does not allow for stricter
type hints on the user side, like `dict[str, str]`, as a dictionary is
considered mutable. Typing our method as `Mapping` indicates that we
do not change the corresponding values inside it and does allow for
stricter typing in user code.
Closes #3453.1 parent 2b2eca2 commit 9fad9ff
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
| 1065 | + | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| |||
0 commit comments