Skip to content

Commit 33964b8

Browse files
Do not use mutable defaults
1 parent ec75740 commit 33964b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

betterproto/tests/mocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
class MockChannel(Channel):
77
# noinspection PyMissingConstructor
8-
def __init__(self, responses: List = []) -> None:
9-
self.responses = responses
8+
def __init__(self, responses=None) -> None:
9+
self.responses = responses if responses else []
1010
self.requests = []
1111

1212
def request(self, route, cardinality, request, response_type, **kwargs):

0 commit comments

Comments
 (0)