Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def mapply(self, fn, args, kwargs):
try:
memo = typeguard._CallMemo(fn, args=args, kwargs=kwargs)
typeguard.check_argument_types(memo)
except TypeError as exc:
print(exc)
raise XMLRPCInvalidParamTypes(exc)
return super().mapply(fn, args, kwargs)