From 787ad33186dac4a7b30d151af8fe8558e1cf9fe6 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 24 May 2024 10:59:42 -0700 Subject: [PATCH] Update except --- Lib/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 2d8414005fc869..0cb4f1bdf66967 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -265,7 +265,7 @@ def __missing__(self, key): def _call_dunder_annotate(annotate, format): try: return annotate(format) - except AssertionError: + except NotImplementedError: pass if format == FORWARDREF: globals = {**annotate.__builtins__, **annotate.__globals__}