Skip to content

Commit 536464a

Browse files
mgrossuMarius Grossu
andauthored
Fix check_find_names on Python 3.14 (#45)
Co-authored-by: Marius Grossu <mgrossu@localhost.localdomain>
1 parent 8ec05ed commit 536464a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/test_find_names.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def check_find_names(
4545

4646
exec_locals = set(exec_locals)
4747
exec_locals -= {"__builtins__", "__annotations__"}
48+
# Python 3.14+ introduces extra internal annotation symbols
49+
exec_locals -= {"__annotate__", "__conditional_annotations__"}
4850
# In general, we over define things, because we don't deal with scopes and such. So just check
4951
# a subset relationship holds, we could tighten this check in the future.
5052
assert exec_locals <= defined

0 commit comments

Comments
 (0)