summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2018-07-26 06:44:39 +0200
committerMichele Simionato <michele.simionato@gmail.com>2018-07-26 06:44:39 +0200
commita02defca5f26eafdc77502b7215135cff0caf895 (patch)
tree881000a03b6c2c629317620650c803f121e7d176
parent6bf177c915395ab6d8a81ff48da22be2261216c1 (diff)
downloadpython-decorator-git-a02defca5f26eafdc77502b7215135cff0caf895.tar.gz
Fix
-rw-r--r--PITCHME.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/PITCHME.md b/PITCHME.md
index 515430d..02821f9 100644
--- a/PITCHME.md
+++ b/PITCHME.md
@@ -131,9 +131,16 @@ def deprecated(func, message='', *args, **kw):
func.called += 1
return func(*args, **kw)
+```
+Usage with an without parenthesis
+```
@deprecated('Use new_function instead')
def old_function():
'Do something'
+
+@deprecated
+def another_old_function():
+ 'Do something else'
```
---
http://decorator.readthedocs.io/en/latest/