4 ms·
So put the check at the top of the top level __init__.py. Move any invalid syntax in that file to an import. Is there any reason that would be a worse idea?
by eloff 4y ago
So put the check at the top of the top level __init__.py. Move any invalid syntax in that file to an import. Is there any reason that would be a worse idea?
- Iv 4y agoMaybe half of the python code I use comes from single files. Your approach works for a module.