|
1 | | -// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.1 |
| 1 | +// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2 |
2 | 2 |
|
3 | 3 | #include "pybase.h" |
4 | 4 | #include "py.Windows.AI.MachineLearning.Preview.h" |
@@ -160,7 +160,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
160 | 160 | { Py_tp_dealloc, _dealloc_ImageVariableDescriptorPreview }, |
161 | 161 | { Py_tp_methods, _methods_ImageVariableDescriptorPreview }, |
162 | 162 | { Py_tp_getset, _getset_ImageVariableDescriptorPreview }, |
163 | | - { 0, nullptr }, |
| 163 | + { }, |
164 | 164 | }; |
165 | 165 |
|
166 | 166 | static PyType_Spec _type_spec_ImageVariableDescriptorPreview = |
@@ -397,7 +397,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
397 | 397 | { Py_tp_dealloc, _dealloc_InferencingOptionsPreview }, |
398 | 398 | { Py_tp_methods, _methods_InferencingOptionsPreview }, |
399 | 399 | { Py_tp_getset, _getset_InferencingOptionsPreview }, |
400 | | - { 0, nullptr }, |
| 400 | + { }, |
401 | 401 | }; |
402 | 402 |
|
403 | 403 | static PyType_Spec _type_spec_InferencingOptionsPreview = |
@@ -669,6 +669,19 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
669 | 669 | } |
670 | 670 | } |
671 | 671 |
|
| 672 | + static int _map_contains_LearningModelBindingPreview(py::wrapper::Windows::AI::MachineLearning::Preview::LearningModelBindingPreview* self, PyObject* key) noexcept |
| 673 | + { |
| 674 | + try |
| 675 | + { |
| 676 | + return static_cast<int>(self->obj.HasKey(py::convert_to<winrt::hstring>(key))); |
| 677 | + } |
| 678 | + catch (...) |
| 679 | + { |
| 680 | + py::to_PyErr(); |
| 681 | + return -1; |
| 682 | + } |
| 683 | + } |
| 684 | + |
672 | 685 | static Py_ssize_t _map_length_LearningModelBindingPreview(py::wrapper::Windows::AI::MachineLearning::Preview::LearningModelBindingPreview* self) noexcept |
673 | 686 | { |
674 | 687 | try |
@@ -718,9 +731,10 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
718 | 731 | { Py_tp_methods, _methods_LearningModelBindingPreview }, |
719 | 732 | { Py_tp_getset, _getset_LearningModelBindingPreview }, |
720 | 733 | { Py_tp_iter, _iterator_LearningModelBindingPreview }, |
| 734 | + { Py_sq_contains, _map_contains_LearningModelBindingPreview }, |
721 | 735 | { Py_mp_length, _map_length_LearningModelBindingPreview }, |
722 | 736 | { Py_mp_subscript, _map_subscript_LearningModelBindingPreview }, |
723 | | - { 0, nullptr }, |
| 737 | + { }, |
724 | 738 | }; |
725 | 739 |
|
726 | 740 | static PyType_Spec _type_spec_LearningModelBindingPreview = |
@@ -889,7 +903,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
889 | 903 | { Py_tp_dealloc, _dealloc_LearningModelDescriptionPreview }, |
890 | 904 | { Py_tp_methods, _methods_LearningModelDescriptionPreview }, |
891 | 905 | { Py_tp_getset, _getset_LearningModelDescriptionPreview }, |
892 | | - { 0, nullptr }, |
| 906 | + { }, |
893 | 907 | }; |
894 | 908 |
|
895 | 909 | static PyType_Spec _type_spec_LearningModelDescriptionPreview = |
@@ -974,7 +988,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
974 | 988 | { Py_tp_dealloc, _dealloc_LearningModelEvaluationResultPreview }, |
975 | 989 | { Py_tp_methods, _methods_LearningModelEvaluationResultPreview }, |
976 | 990 | { Py_tp_getset, _getset_LearningModelEvaluationResultPreview }, |
977 | | - { 0, nullptr }, |
| 991 | + { }, |
978 | 992 | }; |
979 | 993 |
|
980 | 994 | static PyType_Spec _type_spec_LearningModelEvaluationResultPreview = |
@@ -1187,7 +1201,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1187 | 1201 | { Py_tp_dealloc, _dealloc_LearningModelPreview }, |
1188 | 1202 | { Py_tp_methods, _methods_LearningModelPreview }, |
1189 | 1203 | { Py_tp_getset, _getset_LearningModelPreview }, |
1190 | | - { 0, nullptr }, |
| 1204 | + { }, |
1191 | 1205 | }; |
1192 | 1206 |
|
1193 | 1207 | static PyType_Spec _type_spec_LearningModelPreview = |
@@ -1300,7 +1314,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1300 | 1314 | { Py_tp_dealloc, _dealloc_LearningModelVariableDescriptorPreview }, |
1301 | 1315 | { Py_tp_methods, _methods_LearningModelVariableDescriptorPreview }, |
1302 | 1316 | { Py_tp_getset, _getset_LearningModelVariableDescriptorPreview }, |
1303 | | - { 0, nullptr }, |
| 1317 | + { }, |
1304 | 1318 | }; |
1305 | 1319 |
|
1306 | 1320 | static PyType_Spec _type_spec_LearningModelVariableDescriptorPreview = |
@@ -1469,7 +1483,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1469 | 1483 | { Py_tp_dealloc, _dealloc_MapVariableDescriptorPreview }, |
1470 | 1484 | { Py_tp_methods, _methods_MapVariableDescriptorPreview }, |
1471 | 1485 | { Py_tp_getset, _getset_MapVariableDescriptorPreview }, |
1472 | | - { 0, nullptr }, |
| 1486 | + { }, |
1473 | 1487 | }; |
1474 | 1488 |
|
1475 | 1489 | static PyType_Spec _type_spec_MapVariableDescriptorPreview = |
@@ -1596,7 +1610,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1596 | 1610 | { Py_tp_dealloc, _dealloc_SequenceVariableDescriptorPreview }, |
1597 | 1611 | { Py_tp_methods, _methods_SequenceVariableDescriptorPreview }, |
1598 | 1612 | { Py_tp_getset, _getset_SequenceVariableDescriptorPreview }, |
1599 | | - { 0, nullptr }, |
| 1613 | + { }, |
1600 | 1614 | }; |
1601 | 1615 |
|
1602 | 1616 | static PyType_Spec _type_spec_SequenceVariableDescriptorPreview = |
@@ -1737,7 +1751,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1737 | 1751 | { Py_tp_dealloc, _dealloc_TensorVariableDescriptorPreview }, |
1738 | 1752 | { Py_tp_methods, _methods_TensorVariableDescriptorPreview }, |
1739 | 1753 | { Py_tp_getset, _getset_TensorVariableDescriptorPreview }, |
1740 | | - { 0, nullptr }, |
| 1754 | + { }, |
1741 | 1755 | }; |
1742 | 1756 |
|
1743 | 1757 | static PyType_Spec _type_spec_TensorVariableDescriptorPreview = |
@@ -1850,7 +1864,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview |
1850 | 1864 | { Py_tp_dealloc, _dealloc_ILearningModelVariableDescriptorPreview }, |
1851 | 1865 | { Py_tp_methods, _methods_ILearningModelVariableDescriptorPreview }, |
1852 | 1866 | { Py_tp_getset, _getset_ILearningModelVariableDescriptorPreview }, |
1853 | | - { 0, nullptr }, |
| 1867 | + { }, |
1854 | 1868 | }; |
1855 | 1869 |
|
1856 | 1870 | static PyType_Spec _type_spec_ILearningModelVariableDescriptorPreview = |
|
0 commit comments