Skip to content

Commit

Permalink
Updated changelog and bumped version to 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Jan 7, 2022
1 parent 5a20232 commit ad013a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ HISTORY

## Unreleased

The "fix" in version 5.1 broke `decorator.contextmanager` even more.
This is now solved, thanks to Wim Glenn.
## 5.1.1 (2022-01-07)

Sangwoo Shim contributed a fix so that cythonized functions can be decorated.
Brian McFee pointed out an issue in the `decorator_apply` example and
Wim Glenn pointed out that the "fix" in version 5.1 broke
`decorator.contextmanager` even more. Both issues are now solved.

## 5.1.0 (2021-09-11)

Expand Down
6 changes: 3 additions & 3 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
|Author | Michele Simionato|
|---|---|
|E-mail | michele.simionato@gmail.com|
|Version| 5.1.0 (2021-09-11)|
|Version| 5.1.1 (2022-01-07)|
|Supports| Python 3.5, 3.6, 3.7, 3.8, 3.9, 3.10|
|Download page| http://pypi.python.org/pypi/decorator/5.1.0|
|Download page| http://pypi.python.org/pypi/decorator/5.1.1|
|Installation| ``pip install decorator``|
|License | BSD license|

Expand Down Expand Up @@ -923,7 +923,7 @@ You can use a ``FunctionMaker`` to implement that functionality as follows:
is not a signature-preserving decorator.
"""
return FunctionMaker.create(
func, 'return decfunc(%(signature)s)',
func, 'return decfunc(%(shortsignature)s)',
dict(decfunc=dec(func)), __wrapped__=func)
```

Expand Down
2 changes: 1 addition & 1 deletion src/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from contextlib import _GeneratorContextManager
from inspect import getfullargspec, iscoroutinefunction, isgeneratorfunction

__version__ = '5.1.0'
__version__ = '5.1.1'

DEF = re.compile(r'\s*def\s*([_\w][_\w\d]*)\s*\(')
POS = inspect.Parameter.POSITIONAL_OR_KEYWORD
Expand Down

0 comments on commit ad013a2

Please sign in to comment.