wrapper.is_wrapped(): handle wrapper_type = 'none'

This commit is contained in:
InsanePrawn 2022-09-22 01:40:59 +02:00
parent b551c89a1c
commit 56dbd3966c
2 changed files with 22 additions and 9 deletions

View file

@ -29,7 +29,8 @@ def wrap(wrapper_type: str = None):
def is_wrapped(wrapper_type: str = None):
return get_wrapper_impl(wrapper_type).is_wrapped()
wrapper_type = get_wrapper_type(wrapper_type)
return wrapper_type != 'none' and get_wrapper_impl(wrapper_type).is_wrapped()
def enforce_wrap(no_wrapper=False):