(self, obj)
| 6 | def autocast(method): # Optional method decorator |
| 7 | @wraps(method) |
| 8 | def wrapper(self, obj): |
| 9 | try: |
| 10 | return method(self, self.__class__(*obj)) |
| 11 | except TypeError: |
| 12 | return method(self, obj) |
| 13 | return wrapper |
| 14 | |
| 15 | ################################################################################ |
no test coverage detected