returns
returns copied to clipboard
Try to provide default implementation for some interfaces
For example, .map
is just return self.__class__(function(self._inner_value))
in many cases.
There are also other methods that can be possibly have defaults.
Or .from_iterable
also is the same for every container.
But, we need to check that:
- Typing works correctly
- In case if method needs a non-default implementation, we can know it in advance
Related #598 Related #495
We have a very complex bug, because currently @kinded
method cannot be overridden. All its children are marked as invalid.
Nope, we have problems with mypy
and custom descriptors inheritance. I will need to submit a bug to mypy
.
And probably a fix too!