barectf/cgen.py: add missing `Optional` type hint
[barectf.git] / 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.02388 seconds and 4 git commands to generate.