summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@gmail.com>2020-04-01 21:37:13 -0300
committerGitHub <noreply@github.com>2020-04-01 21:37:13 -0300
commit589c358389b0ac9b720243efe1ab35d6bc918b27 (patch)
tree3020378ea66f841bbc0df701c70dd279cae7e66e /src/runtime
parent57a1ea5b56fa1e8cb3c8b9512ee421499a72a750 (diff)
Expose PGF/Concr/Iter/Bracket
Expose the remaining types in the module. These are helpful for example in type annotations.
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/python/pypgf.c7
1 files changed, 7 insertions, 0 deletions
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);