Skip to content

Commit

Permalink
Fix README.md code example
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkz committed Feb 29, 2024
1 parent a8f47c6 commit c4bb065
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ from riposte.printer.mixins import PrinterBaseMixin
class CustomPrinterMixin(PrinterBaseMixin):
def ask(self, *args, **kwargs): # adding new one
self._print((*args, "???"), **kwargs)
self._print(*(*args, "???"), **kwargs)
def shout(self, *args, **kwargs): # adding new one
self._print((*args, "!!!"), **kwargs)
self._print(*(*args, "!!!"), **kwargs)
class CustomRiposte(Riposte, CustomPrinterMixin):
pass
Expand All @@ -365,7 +365,6 @@ repl = CustomRiposte()
def foobar(message: str):
repl.shout(message)
repl.ask(message)
repl.success(message) # It'll raise exception as it's no longer available
```
#### Coloring output with `Pallete`
Expand Down

0 comments on commit c4bb065

Please sign in to comment.