add NotImplementedError when not override execute

This commit is contained in:
Dun Liang 2021-03-06 17:02:24 +08:00
parent 0d94663dee
commit 8bf423980e
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.2.36'
__version__ = '1.2.2.37'
from . import lock
with lock.lock_scope():
ori_int = int
@ -700,7 +700,7 @@ class Module:
def __init__(self, *args, **kw):
pass
def execute(self, *args, **kw):
pass
raise NotImplementedError
def __call__(self, *args, **kw):
return self.execute(*args, **kw)
def __repr__(self):