Skip to content

Commit 3963916

Browse files
author
fraser.todd
committed
OscBundleBuilder's contents now have correct typing
1 parent 551d5ed commit 3963916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonosc/osc_bundle_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def __init__(self, timestamp: int) -> None:
2525
seconds since the epoch in UTC or IMMEDIATELY.
2626
"""
2727
self._timestamp = timestamp
28-
self._contents: List[osc_bundle.OscBundle] = []
28+
self._contents: List[osc_bundle.OscBundle | osc_message.OscMessage] = []
2929

30-
def add_content(self, content: osc_bundle.OscBundle) -> None:
30+
def add_content(self, content: osc_bundle.OscBundle | osc_message.OscMessage) -> None:
3131
"""Add a new content to this bundle.
3232
3333
Args:

0 commit comments

Comments
 (0)