From 79390d4eea20ca15fd8e088345528f31ed5fad1e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 21 Dec 2024 10:40:06 -0400 Subject: 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. --- Biz/Repl.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Biz/Repl.py') 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): -- cgit v1.2.3