Skip to content

Commit

Permalink
fix black formatting changes now failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
masklinn committed Feb 3, 2024
1 parent e9483d8 commit fafda51
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/ua_parser/user_agent_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ def __init__(
self.v1_replacement = v1_replacement
self.v2_replacement = v2_replacement

def Parse(
self, user_agent_string: str
) -> Tuple[Optional[str], Optional[str], Optional[str], Optional[str],]:
def Parse(self, user_agent_string: str) -> Tuple[
Optional[str],
Optional[str],
Optional[str],
Optional[str],
]:
family, v1, v2, v3 = None, None, None, None
match = self.user_agent_re.search(user_agent_string)
if match:
Expand Down Expand Up @@ -78,9 +81,7 @@ def __init__(
self.os_v3_replacement = os_v3_replacement
self.os_v4_replacement = os_v4_replacement

def Parse(
self, user_agent_string: str
) -> Tuple[
def Parse(self, user_agent_string: str) -> Tuple[
Optional[str],
Optional[str],
Optional[str],
Expand Down Expand Up @@ -152,9 +153,11 @@ def __init__(
self.brand_replacement = brand_replacement
self.model_replacement = model_replacement

def Parse(
self, user_agent_string: str
) -> Tuple[Optional[str], Optional[str], Optional[str],]:
def Parse(self, user_agent_string: str) -> Tuple[
Optional[str],
Optional[str],
Optional[str],
]:
device, brand, model = None, None, None
match = self.user_agent_re.search(user_agent_string)
if match:
Expand Down

0 comments on commit fafda51

Please sign in to comment.