Skip to content

Update decorator to 5.3.1#2711

Open
pyup-bot wants to merge 1 commit into
mainfrom
pyup-update-decorator-5.0.9-to-5.3.1
Open

Update decorator to 5.3.1#2711
pyup-bot wants to merge 1 commit into
mainfrom
pyup-update-decorator-5.0.9-to-5.3.1

Conversation

@pyup-bot

Copy link
Copy Markdown
Collaborator

This PR updates decorator from 5.0.9 to 5.3.1.

Changelog

5.3.1

Added license SPDX identifier to pyproject.toml (reported by
Christian Lackas).

5.3.0

Added official support for Python 3.14 (thanks to Hugo van Kemenade,
David Cain and the GitHub user bersbersbers).
Fixed a bug with "return await" contributed by Kadir Can Ozden.
Moved decorator.py to a package structure (`decorator/__init__.py`) and
added a stub file (`decorator/__init__.pyi`) contributed by Marco Gorelli.

5.2.1

Shiv Krishna Jaiswal suggested how to manage che case of functions
without `__name__`.
Michał Górny contributed a fix for the generation of the source package.

5.2.0

Changed the build procedure to use pyproject.toml and moved the tests
outside of the generated wheel/tarball.

Added official support for Python 3.11, 3.12, 3.13 (thanks to Hugo van
Kemenade).

Dropped official support for Python < 3.8: the module is
expected to work on older Python versions, but I cannot test such
versions on GitHub actions, so I cannot claim that it is officially
supported.

Dafu Wu provided support for decorating partial functions, i.e.
functions wrapped by functools.partial.

5.1.1

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

Added a function `decoratorx` using the `FunctionMaker` and thus
preserving the signature of `__code__` objects. Then fixed three small bugs:
- Sphinx was printing a few warnings when building the documentation, as
signaled by Tomasz Kłoczko
- functions decorated with `decorator.contextmanager` were one-shot,
as discovered by Alex Pizarro.
- `decorator.decorator` was not passing the kwsyntax argument.
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant