You can implement a function which will check if there are mypyc attributes in the module.
mypyc
For example:
def check_mypyc(module): return hasattr(module, '__mypyc_attrs__')