File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 25
25
Generator ,
26
26
Iterable ,
27
27
List ,
28
+ Mapping ,
28
29
Optional ,
29
30
Set ,
30
31
Tuple ,
@@ -1182,7 +1183,7 @@ def to_dict(
1182
1183
output [cased_name ] = value
1183
1184
return output
1184
1185
1185
- def from_dict (self : T , value : Dict [str , Any ]) -> T :
1186
+ def from_dict (self : T , value : Mapping [str , Any ]) -> T :
1186
1187
"""
1187
1188
Parse the key/value pairs into the current message instance. This returns the
1188
1189
instance itself and is therefore assignable and chainable.
@@ -1385,7 +1386,7 @@ def to_pydict(
1385
1386
output [cased_name ] = value
1386
1387
return output
1387
1388
1388
- def from_pydict (self : T , value : Dict [str , Any ]) -> T :
1389
+ def from_pydict (self : T , value : Mapping [str , Any ]) -> T :
1389
1390
"""
1390
1391
Parse the key/value pairs into the current message instance. This returns the
1391
1392
instance itself and is therefore assignable and chainable.
You can’t perform that action at this time.
0 commit comments