Skip to content

Commit ac506f1

Browse files
committed
added fix for python version 3.9 support
Signed-off-by: Dalwar Hossain <5631766+dalwar23@users.noreply.github.com>
1 parent 30dbe39 commit ac506f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tf_pre_commit/fmt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
"""Main module for tf-pre-commit"""
44

5+
from __future__ import annotations
6+
57
# Import builtin python libraries
68
import argparse
79
import os
@@ -15,7 +17,7 @@
1517
__email__ = "dalwar23@pm.me"
1618

1719

18-
def _option_parser(options_to_parse: str) -> list[str] | None:
20+
def _option_parser(options_to_parse: str | None = None) -> list[str] | None:
1921
"""
2022
Parse provided options and generate less error-prone options string
2123
:param options_to_parse: (str | LiteralString) Global options or options to parse

0 commit comments

Comments
 (0)