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 ,
@@ -1177,7 +1178,7 @@ def to_dict(
1177
1178
output [cased_name ] = value
1178
1179
return output
1179
1180
1180
- def from_dict (self : T , value : Dict [str , Any ]) -> T :
1181
+ def from_dict (self : T , value : Mapping [str , Any ]) -> T :
1181
1182
"""
1182
1183
Parse the key/value pairs into the current message instance. This returns the
1183
1184
instance itself and is therefore assignable and chainable.
@@ -1397,7 +1398,7 @@ def to_pydict(
1397
1398
output [cased_name ] = value
1398
1399
return output
1399
1400
1400
- def from_pydict (self : T , value : Dict [str , Any ]) -> T :
1401
+ def from_pydict (self : T , value : Mapping [str , Any ]) -> T :
1401
1402
"""
1402
1403
Parse the key/value pairs into the current message instance. This returns the
1403
1404
instance itself and is therefore assignable and chainable.
You can’t perform that action at this time.
0 commit comments