Skip to content

Commit fafda51

Browse files
committed
fix black formatting changes now failing CI
1 parent e9483d8 commit fafda51

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/ua_parser/user_agent_parser.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ def __init__(
2121
self.v1_replacement = v1_replacement
2222
self.v2_replacement = v2_replacement
2323

24-
def Parse(
25-
self, user_agent_string: str
26-
) -> Tuple[Optional[str], Optional[str], Optional[str], Optional[str],]:
24+
def Parse(self, user_agent_string: str) -> Tuple[
25+
Optional[str],
26+
Optional[str],
27+
Optional[str],
28+
Optional[str],
29+
]:
2730
family, v1, v2, v3 = None, None, None, None
2831
match = self.user_agent_re.search(user_agent_string)
2932
if match:
@@ -78,9 +81,7 @@ def __init__(
7881
self.os_v3_replacement = os_v3_replacement
7982
self.os_v4_replacement = os_v4_replacement
8083

81-
def Parse(
82-
self, user_agent_string: str
83-
) -> Tuple[
84+
def Parse(self, user_agent_string: str) -> Tuple[
8485
Optional[str],
8586
Optional[str],
8687
Optional[str],
@@ -152,9 +153,11 @@ def __init__(
152153
self.brand_replacement = brand_replacement
153154
self.model_replacement = model_replacement
154155

155-
def Parse(
156-
self, user_agent_string: str
157-
) -> Tuple[Optional[str], Optional[str], Optional[str],]:
156+
def Parse(self, user_agent_string: str) -> Tuple[
157+
Optional[str],
158+
Optional[str],
159+
Optional[str],
160+
]:
158161
device, brand, model = None, None, None
159162
match = self.user_agent_re.search(user_agent_string)
160163
if match:

0 commit comments

Comments
 (0)