python-interface
python-interface copied to clipboard
Minimal Pythonic Interface Definitions
It seems the module currently don't make difference between sync and async functions: ```python >>> import interface >>> class IFoo(interface.Interface): ... async def do_async(self): ... pass ... >>> class BadFoo(interface.implements(IFoo)):...
According to [docs](https://python-interface.readthedocs.io/en/latest/usage.html#properties), > Interfaces can declare non-method attributes that should be provided by implementations using property... In the meanwhile it seems that the module does not make any difference...
When trying to import Interface module into a package, i'm getting following error `from interface import Interface Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module...