Skip to content

Commit bb47bb6

Browse files
Initialize cython.const if not present
Add check for cython.const attribute and initialize it.
1 parent 7938070 commit bb47bb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
cython.tuple = tuple
3131
if not hasattr(cython, 'list'):
3232
cython.list = list
33-
33+
if not hasattr(cython, 'const'):
34+
cython.const = object()
3435

3536
class _CImportStub(ModuleType):
3637
def __getattr__(self, name):

0 commit comments

Comments
 (0)