Skip to content

Commit

Permalink
fix: more precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez committed Aug 8, 2024
1 parent 31d855a commit dc8f6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions courses/credentials.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Digital courseware credentials"""

from __future__ import annotations

import logging
from urllib.parse import urljoin

Expand Down Expand Up @@ -82,7 +80,7 @@ def build_course_run_credential(certificate: CourseRunCertificate) -> dict:


def build_digital_credential(
certificate: ProgramCertificate | CourseRunCertificate,
certificate: ProgramCertificate | CourseRunCertificate, # noqa: FA102
learner_did: LearnerDID,
) -> dict:
"""Function for building certificate digital credentials"""
Expand Down
8 changes: 3 additions & 5 deletions ecommerce/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Functions for ecommerce
"""

from __future__ import annotations

import decimal
import hashlib
import hmac
Expand Down Expand Up @@ -955,9 +953,9 @@ class ValidatedBasket(NamedTuple):
basket: Basket
basket_item: BasketItem
product_version: ProductVersion
coupon_version: CouponVersion | None
run_selection_ids: Iterable[int] | None
data_consent_users: Iterable[DataConsentUser] | None
coupon_version: CouponVersion | None # noqa: FA102
run_selection_ids: Iterable[int] | None # noqa: FA102
data_consent_users: Iterable[DataConsentUser] | None # noqa: FA102


def _validate_basket_contents(basket):
Expand Down

0 comments on commit dc8f6a1

Please sign in to comment.