Skip to content

Commit

Permalink
fix: remove typing for python2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomzoy committed Dec 5, 2022
1 parent 907707c commit 349a627
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions liccheck/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ def check_package(strategy, pkg, level=Level.STANDARD, as_regex=False):
if whitelisted:
return Reason.OK

def check_one(
license_str: str, license_rule: str = "AUTHORIZED", as_regex: bool = False
):
def check_one(license_str, license_rule="AUTHORIZED", as_regex=False):
if as_regex:
license_regex = getattr(strategy, f"{license_rule}_REGEX")
return license_regex.search(license_str) is not None
Expand Down

0 comments on commit 349a627

Please sign in to comment.