MCPcopy Index your code
hub / github.com/python/mypy / copy_os_error

Function copy_os_error

mypy/fscache.py:305–312  ·  view source on GitHub ↗
(e: OSError)

Source from the content-addressed store, hash-verified

303
304
305def copy_os_error(e: OSError) -> OSError:
306 new = OSError(*e.args)
307 new.errno = e.errno
308 new.strerror = e.strerror
309 new.filename = e.filename
310 if e.filename2:
311 new.filename2 = e.filename2
312 return new

Callers 1

listdirMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…