Skip to content

Commit

Permalink
Merge pull request #16 from openedx/sameen/add-metaclass-to-mixin
Browse files Browse the repository at this point in the history
feat: add metaclass to SkillTaggingMixin
  • Loading branch information
sameenfatima78 authored Aug 22, 2023
2 parents e350b8d + dd9ecb8 commit 512c08d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ Unreleased

*

[0.1.2] - 2023-08-18
************************************************

Added
=====

* Define Metaclass for XblockSkillTagging Mixin


[0.1.1] - 2023-06-14
************************************************

Expand Down
2 changes: 1 addition & 1 deletion skill_tagging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Django app plugin for fetching and verifying tags for xblock skills.
"""

__version__ = '0.1.1'
__version__ = '0.1.2'

# pylint: disable=invalid-name
default_app_config = 'skill_tagging.apps.SkillTaggingConfig'
3 changes: 2 additions & 1 deletion skill_tagging/skill_tagging_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from openedx_events.learning.signals import XBLOCK_SKILL_VERIFIED
from xblock.core import XBlock
from xblock.fields import Boolean, Scope
from xblock.internal import NamedAttributesMetaclass
from xblock.runtime import NoSuchServiceError

from .utils import get_api_client
Expand All @@ -26,7 +27,7 @@ def _(text):
return text


class SkillTaggingMixin:
class SkillTaggingMixin(metaclass=NamedAttributesMetaclass):
"""
XBlock Mixin for fetching and verifying skill tags
"""
Expand Down

0 comments on commit 512c08d

Please sign in to comment.