Skip to content

Commit

Permalink
Update except
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 24, 2024
1 parent f9b3956 commit 787ad33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__}
Expand Down

0 comments on commit 787ad33

Please sign in to comment.