decorator
decorator copied to clipboard
decorator
Hi, I was wondering if you would like to integrate continuous fuzzing by way of OSS-Fuzz? Fuzzing is a way to automate test-case generation and has been heavily used for...
# About In current `FunctionMaker.create`, if the function to create from is an async function and if the function body contains any occurrence of return, it will blindly replace it...
Also, I could document how to write signature-changing decorators with it. Can go in a future release.
I think I may have found an issue with `FunctionMaker.create()`. When you try to pass a string containing a return type annotation, it breaks this function. Consider this example: ```python...
According to https://endoflife.date/python python 3.7 has been EOSed in 27 Jun 2023. Pass all code over `pyupgrade --py3.8`.
For automatic dependency scanners the SPDX ID is better since it is unambiguous. "new BSD License" could mean a lot looking at all the BSD licenses: https://spdx.org/licenses/
In Python without `decorator` package, if I want to create a custom decorator that supports both sync and async function, I can write the following: ```python import inspect def custom_decorator(func):...
Fixes: #154
Hello 👋 I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@xfaraday) has found a potential issue, which I would be eager to share with...
If I just ran the example from the doc: ``` from decorator import decorator @decorator def warn_slow(func, timelimit=60, *args, **kw): print(kw) t0 = time.time() result = func(*args, **kw) dt =...