replbase 0.0.73__tar.gz → 0.0.74__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {replbase-0.0.73 → replbase-0.0.74}/PKG-INFO +1 -1
- {replbase-0.0.73 → replbase-0.0.74}/pyproject.toml +1 -1
- {replbase-0.0.73 → replbase-0.0.74}/replbase/repl_base.py +5 -0
- {replbase-0.0.73 → replbase-0.0.74}/LICENSE +0 -0
- {replbase-0.0.73 → replbase-0.0.74}/README.md +0 -0
- {replbase-0.0.73 → replbase-0.0.74}/replbase/__init__.py +0 -0
- {replbase-0.0.73 → replbase-0.0.74}/replbase/cli.py +0 -0
- {replbase-0.0.73 → replbase-0.0.74}/replbase/cmd_meta.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "replbase"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.74"
|
|
8
8
|
description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
|
|
9
9
|
authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
|
|
10
10
|
license = "MIT"
|
|
@@ -528,6 +528,11 @@ class ReplBase:
|
|
|
528
528
|
|
|
529
529
|
self.print(f"[warn]{msg}[/warn]")
|
|
530
530
|
|
|
531
|
+
def error(self, msg: str) -> None:
|
|
532
|
+
"""Print a message to the REPL preformatted as an error"""
|
|
533
|
+
|
|
534
|
+
self.print(f"[error]{msg}[/error]")
|
|
535
|
+
|
|
531
536
|
def pretty_print(self, obj: Any) -> None:
|
|
532
537
|
pretty.pprint(obj)
|
|
533
538
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|