From 589c358389b0ac9b720243efe1ab35d6bc918b27 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Wed, 1 Apr 2020 21:37:13 -0300 Subject: [PATCH] Expose PGF/Concr/Iter/Bracket Expose the remaining types in the module. These are helpful for example in type annotations. --- src/runtime/python/pypgf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index 8d249d45a..c2e585dc3 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -3497,9 +3497,16 @@ MOD_INIT(pgf) PyModule_AddObject(m, "Type", (PyObject *) &pgf_TypeType); Py_INCREF(&pgf_TypeType); + PyModule_AddObject(m, "PGF", (PyObject *) &pgf_PGFType); Py_INCREF(&pgf_PGFType); + + PyModule_AddObject(m, "Concr", (PyObject *) &pgf_ConcrType); Py_INCREF(&pgf_ConcrType); + + PyModule_AddObject(m, "Iter", (PyObject *) &pgf_IterType); Py_INCREF(&pgf_IterType); + + PyModule_AddObject(m, "Bracket", (PyObject *) &pgf_BracketType); Py_INCREF(&pgf_BracketType); return MOD_SUCCESS_VAL(m);