MCPcopy Create free account
hub / github.com/numpy/numpy / JustWriter

Class JustWriter

numpy/lib/tests/test_io.py:2654–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2652# These next two classes encode the minimal API needed to save()/load() arrays.
2653# The `test_ducktyping` ensures they work correctly
2654class JustWriter:
2655 def __init__(self, base):
2656 self.base = base
2657
2658 def write(self, s):
2659 return self.base.write(s)
2660
2661 def flush(self):
2662 return self.base.flush()
2663
2664class JustReader:
2665 def __init__(self, base):

Callers 1

test_ducktypingFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_ducktypingFunction · 0.68