MCPcopy Create free account
hub / github.com/dask/dask / _set_context

Function _set_context

dask/dataframe/io/utils.py:140–144  ·  view source on GitHub ↗

Helper function to place an object on a context stack

(obj, stack)

Source from the content-addressed store, hash-verified

138
139
140def _set_context(obj, stack):
141 """Helper function to place an object on a context stack"""
142 if stack is None:
143 return obj
144 return stack.enter_context(obj)
145
146
147def _open_input_files(

Callers 1

_open_input_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected