summaryrefslogtreecommitdiffstats
path: root/pre_commit_hooks/check_byte_order_marker.py
diff options
context:
space:
mode:
Diffstat (limited to 'pre_commit_hooks/check_byte_order_marker.py')
-rw-r--r--pre_commit_hooks/check_byte_order_marker.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pre_commit_hooks/check_byte_order_marker.py b/pre_commit_hooks/check_byte_order_marker.py
index fda05e8..59cc561 100644
--- a/pre_commit_hooks/check_byte_order_marker.py
+++ b/pre_commit_hooks/check_byte_order_marker.py
@@ -1,9 +1,10 @@
+from __future__ import annotations
+
import argparse
-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='Filenames to check')
args = parser.parse_args(argv)