From: Philippe Proulx Date: Fri, 29 Sep 2023 20:33:28 +0000 (-0400) Subject: Fix: normand.py: update `SymbolsT` to accept `float` value X-Git-Tag: v0.6.2 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=82425ef0364878d890fc5545de0f3923072ea9fa;p=normand.git Fix: normand.py: update `SymbolsT` to accept `float` value Change-Id: I3cc65f7452458c9ebdb03e1ef8c615af279fcbb3 Signed-off-by: Philippe Proulx --- diff --git a/normand/normand.py b/normand/normand.py index 9a95061..1824e5d 100644 --- a/normand/normand.py +++ b/normand/normand.py @@ -30,7 +30,7 @@ # Upstream repository: . __author__ = "Philippe Proulx" -__version__ = "0.6.1" +__version__ = "0.6.2" __all__ = [ "ByteOrder", "parse", @@ -361,7 +361,7 @@ def _raise_error(msg: str, text_loc: TextLoc) -> NoReturn: # Variable/label dictionary type. -SymbolsT = Dict[str, int] +SymbolsT = Dict[str, Union[int, float]] # Python name pattern. @@ -1879,7 +1879,7 @@ def _raise_cli_error(msg: str) -> NoReturn: # Returns a dictionary of string to integers from the list of strings # `args` containing `NAME=VAL` entries. def _dict_from_arg(args: Optional[List[str]]): - d = {} # type: Dict[str, int] + d = {} # type: SymbolsT if args is None: return d diff --git a/pyproject.toml b/pyproject.toml index 1b41fed..a68a799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ [tool.poetry] name = 'normand' -version = '0.6.1' +version = '0.6.2' description = 'Text-to-binary processor with its own language' license = 'MIT' authors = ['Philippe Proulx ']