diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-02-23 23:10:55 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-02-23 23:10:55 -0500 |
| commit | c40a96291b4c97685122d6840f14d324f17fe88f (patch) | |
| tree | fedd8e33ea308e8b732dc3efa43c4d1ffbfc77eb /docs/transcript.rst | |
| parent | 656a7742f0f15bf64f259e4f32b1d0a082fcfc83 (diff) | |
| download | cmd2-git-c40a96291b4c97685122d6840f14d324f17fe88f.tar.gz | |
Added use of @functools.wraps() in our decorators.
This updates a wrapper function to look like the wrapped function.
This partially addresses Issue #271 where using multiple decorators can break help on subcommands, depending on the order in which the decorators are applied.
This PR doesn't actually fix anything in and of itself. But it encourages the usage of @functools.wraps(). If other decorators use this, then there shouldn't be any problem. Of course, we can't control how 3rd-party libraries implement decorators. But we can at least be part of the solution instead of part of the problem.
Diffstat (limited to 'docs/transcript.rst')
0 files changed, 0 insertions, 0 deletions
