Skip to content

Commit

Permalink
Fix tests on 3.7 (#15543)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Jun 29, 2023
1 parent 9a4a5aa commit 05c81d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mypyc/irbuild/classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ def populate_non_ext_bases(builder: IRBuilder, cdef: ClassDef) -> Value:
if builder.options.capi_version < (3, 8):
# TypedDict was added to typing in Python 3.8.
module = "typing_extensions"
# It needs to be "_TypedDict" on typing_extensions 4.7.0+
# and "TypedDict" otherwise.
name = "_TypedDict"
else:
# In Python 3.9 TypedDict is not a real type.
name = "_TypedDict"
Expand Down

0 comments on commit 05c81d6

Please sign in to comment.