Skip to content

Commit f5034cb

Browse files
migonzalvarzedr
authored andcommitted
Fix instance variable initialization
1 parent 9796f5c commit f5034cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ def create_menu(title, body, button_text, cancellable):
275275
```python
276276
class Menu:
277277
def __init__(self, config: dict):
278-
title = config["title"]
279-
body = config["body"]
278+
self.title = config["title"]
279+
self.body = config["body"]
280280
# ...
281281

282282
menu = Menu(

0 commit comments

Comments
 (0)