Skip to content

Commit

Permalink
Fix : incorrect python binding to TypePrinterOption member variable (#…
Browse files Browse the repository at this point in the history
…1114)

* bind two member variables to Diagnostic class to access through python

* Fix : Incorrect python binding for member variable in TypePrinterOption
  • Loading branch information
Badhi authored Sep 8, 2024
1 parent eaaf3e4 commit 7c6b2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/TypeBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void registerTypes(py::module_& m) {
.def_readwrite("elideScopeNames", &TypePrintingOptions::elideScopeNames)
.def_readwrite("printAKA", &TypePrintingOptions::printAKA)
.def_readwrite("anonymousTypeStyle", &TypePrintingOptions::anonymousTypeStyle)
.def_readwrite("skipScopedTypeNames", &TypePrintingOptions::anonymousTypeStyle)
.def_readwrite("skipScopedTypeNames", &TypePrintingOptions::skipScopedTypeNames)
.def_readwrite("fullEnumType", &TypePrintingOptions::anonymousTypeStyle);

py::enum_<TypePrintingOptions::AnonymousTypeStyle>(typePrintingOptions, "AnonymousTypeStyle")
Expand Down

0 comments on commit 7c6b2b0

Please sign in to comment.