Fix: normand.py: update `SymbolsT` to accept `float` value v0.6.2
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 29 Sep 2023 20:33:28 +0000 (16:33 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 29 Sep 2023 20:33:28 +0000 (16:33 -0400)
Change-Id: I3cc65f7452458c9ebdb03e1ef8c615af279fcbb3
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
normand/normand.py
pyproject.toml

index 9a950619177dff1a6f747908bea3a849db1d1b74..1824e5d387a515ddabfaa0b2d5d1c0e493593589 100644 (file)
@@ -30,7 +30,7 @@
 # Upstream repository: <https://github.com/efficios/normand>.
 
 __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
index 1b41fed35cbf6ec06bb3585444aa540e55d7e130..a68a7995d4251a46f0346c11b2e2d3b36847ef3e 100644 (file)
@@ -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 <eeppeliteloop@gmail.com>']
This page took 0.024471 seconds and 4 git commands to generate.