Skip to content

Commit 7135320

Browse files
committed
chore: Fix linting errors
1 parent 7d730e5 commit 7135320

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

netsgiro/objects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ def _add_avtalegiro_transaction(
447447
payer_name: Optional[str] = None,
448448
bank_notification: Union[str, bool] = False,
449449
) -> 'PaymentRequest':
450-
451450
text = bank_notification if isinstance(bank_notification, str) else ''
452451
number = self._next_transaction_number
453452
self._next_transaction_number += 1

netsgiro/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def to_ocr(self) -> str:
366366

367367

368368
@define
369-
class TransactionRecord(Record, ABC):
369+
class TransactionRecord(Record):
370370
"""Transaction record base class."""
371371

372372
transaction_type: 'TransactionType' = field(converter=to_transaction_type)

tests/test_object_building.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_transmission_add_payment_cancellation_assertions():
152152

153153
# Test wrong service code
154154
bad_service_code_assignment = transmission.add_assignment(
155-
**(good_data | {'service_code': netsgiro.ServiceCode.OCR_GIRO})
155+
**{**good_data, **{'service_code': netsgiro.ServiceCode.OCR_GIRO}}
156156
)
157157
with pytest.raises(AssertionError, match='Can only add cancellation to AvtaleGiro assignments'):
158158
bad_service_code_assignment.add_payment_cancellation(**assignment_data)

tests/test_record_parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,6 @@ class SomeRecordDerivative(Record):
429429

430430
with pytest.raises(
431431
TypeError,
432-
match="Can't instantiate abstract class SomeRecordDerivative with abstract method to_ocr",
432+
match="Can't instantiate abstract class SomeRecordDerivative with abstract method",
433433
):
434434
SomeRecordDerivative()

0 commit comments

Comments
 (0)