summaryrefslogtreecommitdiffstats
path: root/pre_commit_hooks/check_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'pre_commit_hooks/check_xml.py')
-rw-r--r--pre_commit_hooks/check_xml.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pre_commit_hooks/check_xml.py b/pre_commit_hooks/check_xml.py
index 0fa6bb2..c256af9 100644
--- a/pre_commit_hooks/check_xml.py
+++ b/pre_commit_hooks/check_xml.py
@@ -1,10 +1,11 @@
+from __future__ import annotations
+
import argparse
import xml.sax.handler
-from typing import Optional
from typing import Sequence
-def main(argv: Optional[Sequence[str]] = None) -> int:
+def main(argv: Sequence[str] | None = None) -> int:
parser = argparse.ArgumentParser()
parser.add_argument('filenames', nargs='*', help='XML filenames to check.')
args = parser.parse_args(argv)