Skip to content

Commit 60ad336

Browse files
committed
fix: update code syntax from linters
1 parent b4a8145 commit 60ad336

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

identity_insights/src/vonage_identity_insights/__init__.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
from . import errors
22
from .identity_insights import IdentityInsights
33
from .requests import (
4+
EmptyInsight,
45
IdentityInsightsRequest,
56
InsightsRequest,
6-
EmptyInsight,
7-
SimSwapInsight,
8-
SubscriberMatchInsight,
9-
LocationVerificationInsight,
107
Location,
118
LocationCenter,
9+
LocationVerificationInsight,
10+
SimSwapInsight,
11+
SubscriberMatchInsight,
1212
)
13-
from .responses import (
14-
IdentityInsightsResponse,
15-
InsightStatus,
16-
)
13+
from .responses import IdentityInsightsResponse, InsightStatus
1714

1815
__all__ = [
1916
"IdentityInsights",

identity_insights/src/vonage_identity_insights/requests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from typing import Optional, Literal
21
from datetime import date
2+
from typing import Literal, Optional
33

44
from pydantic import BaseModel, Field
55
from vonage_utils.types import PhoneNumber
@@ -8,8 +8,8 @@
88
class EmptyInsight(BaseModel):
99
"""Model for an insight request without parameters.
1010
11-
This model represents insights that must be included as an empty JSON
12-
object (`{}`) to indicate that the insight is requested.
11+
This model represents insights that must be included as an empty JSON object (`{}`) to
12+
indicate that the insight is requested.
1313
"""
1414

1515
pass

identity_insights/src/vonage_identity_insights/responses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from typing import List, Optional
21
from datetime import datetime
2+
from typing import List, Optional
3+
34
from pydantic import BaseModel
45

56

identity_insights/tests/test_identity_insights.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
from os.path import abspath
22

3-
from pydantic import ValidationError
4-
53
import responses
4+
from pydantic import ValidationError
65
from pytest import raises
76
from vonage_http_client.http_client import HttpClient, HttpClientOptions
87
from vonage_identity_insights.errors import IdentityInsightsError
9-
from vonage_identity_insights.identity_insights import IdentityInsights
8+
from vonage_identity_insights.identity_insights import IdentityInsights
109
from vonage_identity_insights.requests import (
10+
EmptyInsight,
1111
IdentityInsightsRequest,
1212
InsightsRequest,
13-
EmptyInsight,
1413
)
1514

1615
from testutils import build_response, get_mock_jwt_auth
@@ -37,8 +36,7 @@ def test_format_insight():
3736
)
3837

3938
options = IdentityInsightsRequest(
40-
phone_number="1234567890",
41-
insights = InsightsRequest(format=EmptyInsight())
39+
phone_number="1234567890", insights=InsightsRequest(format=EmptyInsight())
4240
)
4341

4442
response = identity_insights.get_insights(options)
@@ -57,12 +55,10 @@ def test_basic_insight_error():
5755
)
5856

5957
options = IdentityInsightsRequest(
60-
phone_number="1234567890",
61-
insights=InsightsRequest(format=EmptyInsight())
58+
phone_number="1234567890", insights=InsightsRequest(format=EmptyInsight())
6259
)
6360

6461
with raises(IdentityInsightsError) as e:
6562
identity_insights.get_insights(options)
6663

6764
assert "Malformed JSON" in str(e.value)
68-

0 commit comments

Comments
 (0)