-
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.
Merge pull request #79 from Project-OMOTES/75-paramsdict-type-in-type…
…spy-should-be-a-dict-and-not-a-mapping 75: ProtobufDict and ParamsDict types should use a Dict instead of un…
- Loading branch information
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