Skip to content

Commit

Permalink
the definition itself was broken??
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 20, 2024
1 parent 4e4a702 commit 007af5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rerun_py/rerun_sdk/rerun/recording_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def get_thread_local_data_recording() -> RecordingStream | None:
return RecordingStream(result) if result is not None else None


def set_thread_local_data_recording(recording: RecordingStream) -> RecordingStream | None:
def set_thread_local_data_recording(recording: RecordingStream | None) -> RecordingStream | None:
"""
Replaces the currently active thread-local recording with the specified one.
Expand All @@ -523,7 +523,9 @@ def set_thread_local_data_recording(recording: RecordingStream) -> RecordingStre
The newly active thread-local recording.
"""
result = bindings.set_thread_local_data_recording(recording=recording.to_native())
result = bindings.set_thread_local_data_recording(
recording=recording.to_native() if recording is not None else None,
)
return RecordingStream(result) if result is not None else None


Expand Down

0 comments on commit 007af5b

Please sign in to comment.