kragniz / kragniz/python-etcd3

decorator may not be defined as a class property

Open
#852 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
450
Forks
194
PR merge metrics
No merged PRs in 30d

Description

sorry for asking dumb question, but what is the specific reason for defining method decorator inside a class like this https://github.com/lavagetto/python-etcd3/blob/5ca831bf8695d2c0e8e50a86a07290e7f1a04479/etcd3/client.py#L293?

why not define a standalone function instead?

Contributor guide

Open the contributing guide

Research direction

Read etcd3/client.py around line 293 and inspect how the method decorator is defined and used within the client class. Determine whether the issue calls for a standalone function or only an explanation of the existing design; done means reaching and documenting a clear decision, with any affected uses identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.