Skip to content

Commit

Permalink
fix: XBlockAside construtor mro mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Feb 12, 2024
1 parent 7b5e8d6 commit 185323c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xblock/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,19 +355,20 @@ def _set_field_if_present(cls, block, name, value, attrs):
else:
logging.warning("%s does not contain field %s", type(block), name)

def __init__(self, runtime, scope_ids, field_data=None, **kwargs):
def __init__(self, scope_ids, field_data=None, *, runtime, **kwargs):
"""
Arguments:
runtime (:class:`.Runtime`): Use it to access the environment.
It is available in XBlock code as ``self.runtime``.
scope_ids (:class:`.ScopeIds`): Identifiers needed to resolve
scopes.
field_data (:class:`.FieldData`): Interface used by XBlock-likes'
fields to access their data from wherever it is persisted.
DEPRECATED--supply a field-data Runtime service instead.
runtime (:class:`.Runtime`): Use it to access the environment.
It is available in XBlock code as ``self.runtime``.
"""
self.runtime = runtime

Expand Down

0 comments on commit 185323c

Please sign in to comment.