python-interface icon indicating copy to clipboard operation
python-interface copied to clipboard

Minimal Pythonic Interface Definitions

Results 13 python-interface issues
Sort by recently updated
recently updated
newest added

Hi @ssanderson, congratulations for this package! (btw, it should be included in python's stdlib) I'd like to tell there may be an issue when there is a [default property](https://python-interface.readthedocs.io/en/latest/usage.html#default-properties) **setter**....

Do you have the above somewhere?

Hi, first of all thanks for this amazing library! I have a problem though, when using interfaces with typed arguments. As I understand it, if a function accept argument of...

enhancement

I have a generic interface class using `typing.Generic`: `class MyInterface(Generic[T])`. I want to use `python-interface` for better conformance and checking. However, if I add `Interface` as a base class: `class...

Hello! Thanks for a great Python module. I'm using this to define an interface with class properties (member variables). I would like to provide a default value for these variables...

For https://github.com/ssanderson/interface/issues/15. cc @touilleMan

nice module! is there a way to check at runtime if an interface is implemented by a class / instace?

Hi, I get a trouble with PyLint the I import your lib ![image](https://user-images.githubusercontent.com/30433199/46365735-0e22a600-c682-11e8-8fc0-c8af53d51723.png)

I get the following error when using `implements()` with a Django model. ```bash class InstagramContentSource(ContentSource, implements(IContentSource)): TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass...

enhancement

Hi @ssanderson, congratulations on the package! We have an in-house of implementation of interfaces which is *very* similar to yours in philosophy and usage. One key difference in our implementation...