Files
typeshed/third_party/2and3
Jukka Lehtosalo eca93753ee Update the signature of decorator.decorator (#3336)
Nothing prevents a decorator defined using `@decorator` from
changing the signature of the decorated function. For example,
this example changes the return type to `str`:

```
from decorator import decorator

@decorator
def stringify(f, *args, **kwargs) -> str:
    return str(f(*args, **kwargs))
```

The old signature caused false positives in internal Dropbox code.

I couldn't come up with a signature that would produce better types
with mypy while not generating false positives.
2019-10-10 16:45:06 +01:00
..
2019-03-11 00:11:26 +01:00
2016-01-16 16:56:25 -05:00
2016-01-16 16:56:25 -05:00
2018-06-11 19:50:56 -07:00
2018-12-17 19:16:25 +01:00
2018-03-20 15:32:50 -07:00
2018-08-02 23:02:49 -07:00