Skip to content

Commit 76e2f72

Browse files
committed
Fix a typo: should use an instance and not the class itself
The documentation contained a typo, that @mpkocher found, that omitted the round brackets and therefore suggested using a class to store configuration values, which is clearly an antipattern.
1 parent d7bdbc7 commit 76e2f72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def create_menu(config: MenuConfig):
271271
# ...
272272

273273

274-
config = MenuConfig
274+
config = MenuConfig()
275275
config.title = "My delicious menu"
276276
config.body = "A description of the various items on the menu"
277277
config.button_text = "Order now!"

0 commit comments

Comments
 (0)