Skip to content
Merged
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 ndsl/internal/python_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def find_first_NDSLRuntime_caller(frame: FrameType | None) -> NDSLRuntime | None
search_frame: FrameType | None = frame

# Search for a NDSLRuntime frame
while search_frame:
while search_frame is not None:
if "self" in search_frame.f_locals and issubclass(
type(search_frame.f_locals["self"]), NDSLRuntime
):
Expand All @@ -33,7 +33,7 @@ def find_all_NDSLRuntime_callers(frame: FrameType | None) -> list[NDSLRuntime]:
runtimes = []

# Search for a NDSLRuntime frame
while search_frame:
while search_frame is not None:
if "self" in search_frame.f_locals and issubclass(
type(search_frame.f_locals["self"]), NDSLRuntime
):
Expand Down