Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Oct 9, 2024
1 parent 2575237 commit ac56fe4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pydantic.errors import PydanticErrorMixin
from common_library.errors_classes import OsparcErrorMixin


class _BaseRpcApiError(PydanticErrorMixin, ValueError):
class _BaseRpcApiError(OsparcErrorMixin, ValueError):
@classmethod
def get_full_class_name(cls) -> str:
# Can be used as unique code identifier
Expand Down
8 changes: 4 additions & 4 deletions services/payments/src/simcore_service_payments/models/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class PaymentsTransactionsDB(BaseModel):
from_attributes=True,
json_schema_extra={
"examples": [
_EXAMPLE_AFTER_INIT,
_EXAMPLE_AFTER_INIT, # type: ignore[list-item]
# successful completion
{
**_EXAMPLE_AFTER_INIT,
**_EXAMPLE_AFTER_INIT, # type: ignore[dict-item]
"invoice_url": "https://my-fake-pdf-link.com",
"stripe_invoice_id": "12345",
"invoice_pdf_url": "https://my-fake-pdf-link.com",
Expand Down Expand Up @@ -89,10 +89,10 @@ class PaymentsMethodsDB(BaseModel):
from_attributes=True,
json_schema_extra={
"examples": [
_EXAMPLE_AFTER_INIT_PAYMENT_METHOD,
_EXAMPLE_AFTER_INIT_PAYMENT_METHOD, # type: ignore[list-item]
# successful completion
{
**_EXAMPLE_AFTER_INIT_PAYMENT_METHOD,
**_EXAMPLE_AFTER_INIT_PAYMENT_METHOD, # type: ignore[dict-item]
"completed_at": "2023-09-27T10:00:15",
"state": "SUCCESS",
"state_message": "Payment method completed successfully",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class AckPayment(_BaseAckPayment):
model_config = ConfigDict(
json_schema_extra={
"example": _EXAMPLES[1].copy(), # shown in openapi.json
"examples": _EXAMPLES,
"examples": _EXAMPLES, # type: ignore[dict-item]
}
)

Expand Down

0 comments on commit ac56fe4

Please sign in to comment.