plotly / plotly/dash-auth

Return wrapped_func in decorator

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
135
Forks
67
PR merge metrics
No merged PRs in 30d

Description

In the protected_callback decorator, it should be the same to just return the wrapped_func function instead of wrapping it inside of wrap.

Reference:
https://github.com/plotly/dash-auth/blob/1599f97319e5d610f580dcd4f7a748c4aa945845/dash_auth/group_protection.py#L209

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at dash_auth/group_protection.py around line 209 and inspect protected_callback. Done means the decorator returns wrapped_func directly instead of wrapping it in wrap; use any repository checks available to confirm no regression.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.