Skip to content

Commit

Permalink
fix helper with python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Oct 6, 2024
1 parent ce4da7f commit f7c068c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/propcache/_helpers_c.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# cython: language_level=3
from types import GenericAlias
import sys
import types

if sys.version_info >= (3, 9):
GenericAlias = types.GenericAlias
else:

def GenericAlias(cls):
return cls


cdef _sentinel = object()
Expand Down

0 comments on commit f7c068c

Please sign in to comment.