![Simon Willison on Twitter: "Clever way to use Python 3 type annotations: this "patch" decorator looks at the type annotation of the self argument to determine which class it should monkeypatch a Simon Willison on Twitter: "Clever way to use Python 3 type annotations: this "patch" decorator looks at the type annotation of the self argument to determine which class it should monkeypatch a](https://pbs.twimg.com/media/D767tQhUEAAKuus.jpg)
Simon Willison on Twitter: "Clever way to use Python 3 type annotations: this "patch" decorator looks at the type annotation of the self argument to determine which class it should monkeypatch a
mock.patch-Decorator and test fixtures don't work together · Issue #217 · pytest-dev/pytest · GitHub
![python - Pytest mock.patch requests AttributeError: does not have the attribute 'json' - Stack Overflow python - Pytest mock.patch requests AttributeError: does not have the attribute 'json' - Stack Overflow](https://i.stack.imgur.com/UwREl.png)
python - Pytest mock.patch requests AttributeError: does not have the attribute 'json' - Stack Overflow
![can't run/debug separate tests that use function decorators · Issue #3721 · microsoft/vscode-python · GitHub can't run/debug separate tests that use function decorators · Issue #3721 · microsoft/vscode-python · GitHub](https://user-images.githubusercontent.com/1475163/50056796-6be76a00-016a-11e9-9df7-cb211071426e.png)
can't run/debug separate tests that use function decorators · Issue #3721 · microsoft/vscode-python · GitHub
![Danny's tech notebook | 丹尼技術手札: [Python] How can I patch a Python decorator before it wraps a function? Danny's tech notebook | 丹尼技術手札: [Python] How can I patch a Python decorator before it wraps a function?](https://1.bp.blogspot.com/-u-Euu_BqzVw/VhTeYgqyH0I/AAAAAAAACss/qmVuYtd2Bzw/s1600/Screen%2BShot%2B2015-10-07%2Bat%2B4.56.39%2BPM.png)