diff --git a/pynisher/pynisher.py b/pynisher/pynisher.py index e6ce4df5..5ce5e52e 100644 --- a/pynisher/pynisher.py +++ b/pynisher/pynisher.py @@ -40,6 +40,12 @@ class _EMPTY: class Pynisher(Generic[P, T]): """Restrict a function's resources""" + WallTimeoutException = WallTimeoutException + CpuTimeoutException = CpuTimeoutException + MemoryLimitException = MemoryLimitException + PynisherException = PynisherException + TimeoutException = WallTimeoutException + # If `raises=True` or left as default, the return type when calling is just T @overload def __init__( diff --git a/setup.py b/setup.py index cf827f88..0c5d1418 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="pynisher", - version="1.0.2", + version="1.0.3", packages=find_packages(where=".", include=["pynisher*"], exclude=["test*"]), include_package_data=True, install_requires=[