Skip to content

Commit

Permalink
chore: readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 28, 2024
1 parent d136f30 commit e74ef14
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,6 @@ class DemoApp(SlashedApp[AppState, None]):
}
"""

def __init__(self) -> None:
"""Initialize app with typed state."""
super().__init__(data=AppState())

async def handle_input(self, value: str) -> None:
"""Handle regular input by echoing it."""
state = self.context.get_data()
Expand All @@ -329,7 +325,8 @@ class DemoApp(SlashedApp[AppState, None]):


if __name__ == "__main__":
app = DemoApp()
state = AppState(user_name="Admin")
app = DemoApp(data=state)
app.run()
```

Expand Down

0 comments on commit e74ef14

Please sign in to comment.