From 6ce0c9d67c81d6d99ec7ee31f377c838e048504a Mon Sep 17 00:00:00 2001 From: Marek Materzok Date: Mon, 18 Nov 2024 16:19:49 +0100 Subject: [PATCH] Docstring fix --- amaranth-stubs | 2 +- transactron/testing/method_mock.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amaranth-stubs b/amaranth-stubs index e8efebb9d..480a38672 160000 --- a/amaranth-stubs +++ b/amaranth-stubs @@ -1 +1 @@ -Subproject commit e8efebb9dfc8f89a93b92b290eb9f9b11899ed0d +Subproject commit 480a38672c6e84f4827a458e50e06d69f5588713 diff --git a/transactron/testing/method_mock.py b/transactron/testing/method_mock.py index 78f758934..ab6c53120 100644 --- a/transactron/testing/method_mock.py +++ b/transactron/testing/method_mock.py @@ -112,7 +112,7 @@ def def_method_mock( which correspond to named arguments of the method. This decorator can be applied to function definitions or method definitions. - When applied to a method definition, lambdas passed to `async_def_method_mock` + When applied to a method definition, lambdas passed to `def_method_mock` need to take a `self` argument, which should be the first. Any side effects (state modification, assertions, etc.) need to be guarded