Skip to content

Commit 349a627

Browse files
committed
fix: remove typing for python2 support
1 parent 907707c commit 349a627

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

liccheck/command_line.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ def check_package(strategy, pkg, level=Level.STANDARD, as_regex=False):
213213
if whitelisted:
214214
return Reason.OK
215215

216-
def check_one(
217-
license_str: str, license_rule: str = "AUTHORIZED", as_regex: bool = False
218-
):
216+
def check_one(license_str, license_rule="AUTHORIZED", as_regex=False):
219217
if as_regex:
220218
license_regex = getattr(strategy, f"{license_rule}_REGEX")
221219
return license_regex.search(license_str) is not None

0 commit comments

Comments
 (0)