Skip to content

Commit

Permalink
Run ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gray-adeyi committed Dec 1, 2023
1 parent 48ec698 commit bff65e8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion pypaystack2/paystack.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from pypaystack2.api.transactions import AsyncTransaction, Transaction
from pypaystack2.api.transfer_recipients import (
AsyncTransferRecipient,
RecipientType,
TransferRecipient,
)
from pypaystack2.api.transfers import AsyncTransfer, Transfer
Expand Down
4 changes: 3 additions & 1 deletion pypaystack2/utils/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from dataclasses import dataclass
from typing import Any, Optional, Union, NamedTuple

from pypaystack2.utils.enums import RecipientType


@dataclass
class BulkChargeInstruction:
Expand Down Expand Up @@ -207,7 +209,7 @@ class Recipient:
account_number: The account number of recipient.
"""

type: "RecipientType"
type: RecipientType
name: str
bank_code: str
account_number: str
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_async/test_customers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import TestCase, IsolatedAsyncioTestCase
from unittest import IsolatedAsyncioTestCase
from uuid import uuid4

import httpx
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_async/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import TestCase, IsolatedAsyncioTestCase
from unittest import IsolatedAsyncioTestCase

import httpx
from dotenv import load_dotenv
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_async/test_refunds.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dotenv import load_dotenv

from pypaystack2.api.refunds import AsyncRefund
from tests.test_api.mocked_api_testcase import MockedAPITestCase, MockedAsyncAPITestCase
from tests.test_api.mocked_api_testcase import MockedAsyncAPITestCase


class MockedAsyncRefundTestCase(MockedAsyncAPITestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_async/test_settlements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dotenv import load_dotenv

from pypaystack2.api.settlements import AsyncSettlement
from tests.test_api.mocked_api_testcase import MockedAPITestCase, MockedAsyncAPITestCase
from tests.test_api.mocked_api_testcase import MockedAsyncAPITestCase


class MockedAsyncSettlementTestCase(MockedAsyncAPITestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_api/test_async/test_transfer_recipients.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from unittest import TestCase, IsolatedAsyncioTestCase
from unittest import IsolatedAsyncioTestCase

import httpx
from dotenv import load_dotenv

from pypaystack2.api.transfer_recipients import AsyncTransferRecipient
from pypaystack2.utils import RecipientType, Currency, Recipient
from tests.test_api.mocked_api_testcase import MockedAPITestCase, MockedAsyncAPITestCase
from tests.test_api.mocked_api_testcase import MockedAsyncAPITestCase


class MockedAsyncTransferRecipientTestCase(MockedAsyncAPITestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_sync/test_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dotenv import load_dotenv

from pypaystack2.api import Transfer
from pypaystack2.utils import Recipient, TransferInstruction
from pypaystack2.utils import TransferInstruction
from tests.test_api.mocked_api_testcase import MockedAPITestCase


Expand Down
2 changes: 1 addition & 1 deletion tests/test_paystack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dotenv import load_dotenv

from pypaystack2 import Paystack, Split, AsyncPaystack
from pypaystack2 import Paystack, AsyncPaystack
from pypaystack2.api import (
PaymentPage,
ApplePay,
Expand Down

0 comments on commit bff65e8

Please sign in to comment.