Skip to content

Commit 421ba1f

Browse files
chore: quality
1 parent 0991486 commit 421ba1f

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/openedx_content/applets/collections/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ def get_entity_collections(learning_package_id: LearningPackage.PK, entity_key:
196196
return entity.collections.filter(enabled=True).order_by("pk")
197197

198198

199-
def get_collection_entities(learning_package_id: LearningPackage.PK, collection_key: str) -> QuerySet[PublishableEntity]:
199+
def get_collection_entities(
200+
learning_package_id: LearningPackage.PK,
201+
collection_key: str,
202+
) -> QuerySet[PublishableEntity]:
200203
"""
201204
Returns a QuerySet of PublishableEntities in a Collection.
202205

src/openedx_content/applets/publishing/models/publishable_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class PublishableEntity(models.Model):
138138
help_text=_("Set to True when created independently, False when created as part of a container."),
139139
)
140140

141-
@property
141+
@property # type: ignore[no-redef]
142142
@deprecated("Use .id instead")
143143
def pk(self) -> PublishableEntityPK:
144144
return self.id

src/openedx_content/applets/sections/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
from ..containers import api as containers_api
1111
from ..containers.models import Container, ContainerVersion
12-
from ..subsections.models import Subsection, SubsectionVersion
1312
from ..publishing.models import LearningPackage
13+
from ..subsections.models import Subsection, SubsectionVersion
1414
from .models import Section, SectionVersion
1515

1616
# 🛑 UNSTABLE: All APIs related to containers are unstable until we've figured

src/openedx_content/applets/subsections/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
from ..containers import api as containers_api
1111
from ..containers.models import Container, ContainerVersion
12-
from ..units.models import Unit, UnitVersion
1312
from ..publishing.models import LearningPackage
13+
from ..units.models import Unit, UnitVersion
1414
from .models import Subsection, SubsectionVersion
1515

1616
# 🛑 UNSTABLE: All APIs related to containers are unstable until we've figured

0 commit comments

Comments
 (0)