Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Sep 5, 2024
1 parent 102015e commit a29db3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion number_management/src/vonage_numbers/number_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
from pydantic import validate_call
from vonage_http_client.http_client import HttpClient
from vonage_numbers.errors import NumbersError

from .requests import (
SearchAvailableNumbersFilter,
ListOwnedNumbersFilter,
NumberParams,
SearchAvailableNumbersFilter,
UpdateNumberParams,
)
from .responses import AvailableNumber, NumbersStatus, OwnedNumber
Expand Down
9 changes: 4 additions & 5 deletions number_management/src/vonage_numbers/requests.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from typing import Optional

from pydantic import BaseModel, Field, model_validator

from vonage_numbers.enums import NumberFeatures, NumberType, VoiceCallbackType
from vonage_utils.types import PhoneNumber

from .errors import NumbersError
from vonage_utils.types import PhoneNumber


class ListNumbersFilter(BaseModel):
Expand Down Expand Up @@ -38,9 +37,9 @@ class SearchAvailableNumbersFilter(ListNumbersFilter):
class NumberParams(BaseModel):
"""Specify the two-letter country code and the number you are referring to.
If you'd like to perform an action on a subaccount, provide the api_key of
that account in the `target_api_key` field. If you'd like to perform an action
on your own account, you do not need to provide this field.
If you'd like to perform an action on a subaccount, provide the api_key of that account in the
`target_api_key` field. If you'd like to perform an action on your own account, you do not need
to provide this field.
"""

country: str = Field(..., min_length=2, max_length=2)
Expand Down
7 changes: 3 additions & 4 deletions number_management/tests/test_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@

import responses
from pytest import raises

from vonage_http_client.http_client import HttpClient
from vonage_numbers.errors import NumbersError
from vonage_numbers.number_management import Numbers
from vonage_http_client.http_client import HttpClient

from testutils import build_response, get_mock_api_key_auth
from vonage_numbers.requests import (
ListOwnedNumbersFilter,
NumberParams,
SearchAvailableNumbersFilter,
UpdateNumberParams,
)

from testutils import build_response, get_mock_api_key_auth

path = abspath(__file__)

numbers = Numbers(HttpClient(get_mock_api_key_auth()))
Expand Down

0 comments on commit a29db3c

Please sign in to comment.