diff options
author | Ben Sima <ben@bsima.me> | 2024-12-21 10:40:06 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-12-21 09:40:06 -0500 |
commit | 79390d4eea20ca15fd8e088345528f31ed5fad1e (patch) | |
tree | f08b71ffddead23484fd6df9e1aff54d20f12768 /Biz/Repl.py | |
parent | 18956baad9cde85bc55bd0113092e51786d9e1ee (diff) |
Upgrade to nixos-24.05
I think this is the only "supported" nixos version now. But in any case scipy
seemed to be broken on the older version, and I couldn't build my code that uses
llm. Also, this allows me to get rid of the bild.os-unstable thing for
Beryllium, which was just a sitting timebomb of breaking stuff.
There are a lot of changes here because ruff updated to the very latest, and it
changed some minor lint things. Also with the new nixos I get a proper cgit
module, and some other breaking changes needed fixing.
Diffstat (limited to 'Biz/Repl.py')
-rw-r--r-- | Biz/Repl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Biz/Repl.py b/Biz/Repl.py index cd7bad6..6b60d02 100644 --- a/Biz/Repl.py +++ b/Biz/Repl.py @@ -43,6 +43,9 @@ def use(ns: str, path: str) -> None: Load or reload the module named 'ns' from 'path'. Like `use` in the Guile Scheme repl. + + Raises: + ReplError: if module cannot be loaded """ logging.info("loading %s from %s", ns, path) spec = importlib.util.spec_from_file_location(ns, path) @@ -149,6 +152,9 @@ class CustomRepl: This is called on `sys.excepthook`, which runs when the repl doesn't know how to handle some input. So, we inspect `value` and provide alternate functionality, bottoming out at the default exception. + + Raises: + ReplError: if caught exception is empty """ # ruff: noqa: PLR0911 if not isinstance(value, SyntaxError): |