main.py: replace | operator with Optional

This commit is contained in:
Yacine Elhamer
2023-07-27 16:00:52 +01:00
parent 3d812edc4d
commit b8212b3da7

View File

@@ -835,7 +835,7 @@ def get_rules(
rule_paths: List[RulePath],
cache_dir=None,
on_load_rule: Callable[[RulePath, int, int], None] = on_load_rule_default,
analysis_context: ExecutionContext | None = None,
analysis_context: Optional[ExecutionContext] = None,
) -> RuleSet:
"""
args: