These are chat archives for evhub/coconut

Dec 2016
Evan Hubinger
Dec 23 2016 03:07
@Tshimanga It is entirely possible to do strict typing in Coconut, although currently only in coconut-develop, the development pre-release of the next version, which you can install with pip install coconut-develop. See MyPy Integration in the develop documentation for how to use it. A simple example of how this can be used to type methods, like you were asking:
class  example:
    attribute: int = 10
    def method(self, arg1: str) -> str: arg1 * self.attribute