Asib27's picture
try 1
065fee7 verified
raw
history blame
295 Bytes
"""
Expose zipp.Path as .zipfile.Path
"""
import importlib
import sys
import types
import zipp
zipfile = types.SimpleNamespace(**vars(importlib.import_module('zipfile')))
zipfile.Path = zipp.Path
zipfile._path = zipp
sys.modules[__name__ + '.zipfile'] = zipfile # type: ignore[assignment]