barectf/cgen.py: add missing `Optional` type hint
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 17 May 2023 15:02:55 +0000 (11:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 17 May 2023 15:02:55 +0000 (11:02 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I8612fc834c371a3cc80ed7cfc94e2859261719b5

barectf/cgen.py

index 0e771cedc9a1e5ab8378d1ee3b853d5bd55db6e6..1310572b2afe3d38a2cad93db2441ae207cc889f 100644 (file)
@@ -94,7 +94,7 @@ class _Op:
 # The templates of a compound operation handles its suboperations.
 class _CompoundOp(_Op):
     def __init__(self, ft: barectf_config._FieldType, names: List[str], level: Count,
-                 templates: _OpTemplates, subops: List[Any] = None):
+                 templates: _OpTemplates, subops: Optional[List[Any]] = None):
         super().__init__(ft, names, level, templates)
         self._subops = subops
 
This page took 0.026835 seconds and 4 git commands to generate.