Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo #288

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions event_model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2056,14 +2056,14 @@ def compose_stream_datum(
@dataclass
class ComposeStreamResourceBundle:
stream_resource_doc: StreamResource
compose_stream_data: List[ComposeStreamDatum]
compose_stream_datum: ComposeStreamDatum

# iter for backwards compatibility
def __iter__(self) -> Iterator:
return iter(
(
self.stream_resource_doc,
self.compose_stream_data,
self.compose_stream_datum,
)
)

Expand Down
2 changes: 1 addition & 1 deletion event_model/tests/test_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_compose_stream_resource(tmp_path):
)
resource_doc, compose_stream_data = bundle
assert bundle.stream_resource_doc is resource_doc
assert bundle.compose_stream_data is compose_stream_data
assert bundle.compose_stream_datum is compose_stream_data
assert compose_stream_data[0] is not compose_stream_data[1]
datum_doc_0, datum_doc_1 = (
compose_stream_datum(datum_kwargs={})
Expand Down
Loading