-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
75: ProtobufDict and ParamsDict types should use a Dict instead of un…
…mutable Mapping.
- Loading branch information
1 parent
3a47c6d
commit afa2ec9
Showing
2 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from datetime import timedelta, datetime | ||
from typing import List, Union, Mapping | ||
from typing import List, Union, Dict | ||
|
||
ParamsDictValues = Union[ | ||
List["ParamsDictValues"], "ParamsDict", None, float, int, str, bool, datetime, timedelta | ||
] | ||
ParamsDict = Mapping[str, ParamsDictValues] | ||
ParamsDict = Dict[str, ParamsDictValues] | ||
PBStructCompatibleTypes = Union[list, float, str, bool] | ||
ProtobufDict = Mapping[str, PBStructCompatibleTypes] | ||
ProtobufDict = Dict[str, PBStructCompatibleTypes] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters