Leaklens

django__django-15731

inspect.signature() returns incorrect signature on manager methods.

Verdict: the fix is stated in the issue (Tier A).

The fix is to use functools.wraps instead of manually assigning name and docstring. wraps will take care of all the metadata and inspect.signature will return the expected output.

The text states the fix: “The fix is to use functools.wraps instead of manually assigning name and docstring. wraps will take care of all the metadata and inspect.signature will return the expect…”

All SWE-bench Verified tasks · more django/django tasks · How the check works