Skip to content

Commit e4b04f8

Browse files
authored
[mypyc] Cleanup old version guard (#20536)
Support for Python 3.9 has been removed. The check will always be true.
1 parent 78dcec5 commit e4b04f8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mypyc/lib-rt/function_wrapper.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,7 @@ static PyType_Spec CPyFunction_spec = {
156156
.name = "Function compiled with mypyc",
157157
.basicsize = sizeof(CPyFunction),
158158
.itemsize = 0,
159-
.flags =
160-
#if PY_VERSION_HEX >= 0x030A0000
161-
Py_TPFLAGS_IMMUTABLETYPE |
162-
#endif
159+
.flags = Py_TPFLAGS_IMMUTABLETYPE |
163160
#if PY_VERSION_HEX >= 0x030C0000
164161
Py_TPFLAGS_MANAGED_DICT |
165162
#endif

0 commit comments

Comments
 (0)