Skip to content

Commit

Permalink
Add _FilteredStderr.flush.
Browse files Browse the repository at this point in the history
Fixes #827.
  • Loading branch information
patrick-kidger committed Sep 3, 2024
1 parent 3cdeef8 commit 14e2c49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions equinox/_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def write(self, data: str):
if "_EquinoxRuntimeError" not in data:
self.stderr.write(data)

# Needed for the PyCharm debugger, see #827.
def flush(self):
self.stderr.flush()


class _JitWrapper(Module):
fn: str # this attribute exists solely to give a nice repr
Expand Down

0 comments on commit 14e2c49

Please sign in to comment.