From 608d02ec8bf8ac7449eb10ff4776dba9dc6dad6c Mon Sep 17 00:00:00 2001
From: Joscha Schmiedt <joscha@schmiedt.dev>
Date: Sat, 20 Apr 2024 22:22:21 +0200
Subject: [PATCH] Fix broken if/elif/else statement

---
 src/linkahead/cached.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/linkahead/cached.py b/src/linkahead/cached.py
index ea743015..d746a560 100644
--- a/src/linkahead/cached.py
+++ b/src/linkahead/cached.py
@@ -213,7 +213,7 @@ unique: bool, optional
                    for key in items.keys()), "Keys must be strings or integers."
     elif kind == AccessType.PATH:
         assert all(isinstance(key, str) for key in items.keys()), "Keys must be strings."
-    elif kind == _:
+    else:
         raise ValueError(f"Unknown AccessType: {kind}")
 
     # 1. add the given items to the corresponding dummy dict cache
-- 
GitLab