Deepwalker / trafaret

Ultimate transformation library that supports validation, contexts and aiohttp.
http://trafaret.readthedocs.org/en/latest/
BSD 2-Clause "Simplified" License
177 stars 31 forks source link

Drop unnesessary ensure_trafaret call #43

Closed nimnull closed 6 years ago

nimnull commented 6 years ago

class Key already implements ensure_trafaret(trafaret) within the set_trafaret method:

    def set_trafaret(self, trafaret):
        self.trafaret = ensure_trafaret(trafaret)
        return self