|
1 | | -// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.9 |
| 1 | +// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.10 |
2 | 2 |
|
3 | 3 | #include "pybase.h" |
4 | 4 | #include "py.Windows.AI.MachineLearning.Preview.h" |
@@ -2670,140 +2670,77 @@ PyMODINIT_FUNC PyInit__winsdk_Windows_AI_MachineLearning_Preview(void) noexcept |
2670 | 2670 | return nullptr; |
2671 | 2671 | } |
2672 | 2672 |
|
2673 | | - py::pyobj_handle bases{PyTuple_Pack(1, object_type)}; |
| 2673 | + py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)}; |
2674 | 2674 |
|
2675 | | - if (!bases) |
2676 | | - { |
2677 | | - return nullptr; |
2678 | | - } |
2679 | | - |
2680 | | - py::pyobj_handle collections_abc_module{PyImport_ImportModule("collections.abc")}; |
2681 | | - |
2682 | | - if (!collections_abc_module) |
2683 | | - { |
2684 | | - return nullptr; |
2685 | | - } |
2686 | | - |
2687 | | - py::pyobj_handle sequence_type{PyObject_GetAttrString(collections_abc_module.get(), "Sequence")}; |
2688 | | - |
2689 | | - if (!sequence_type) |
2690 | | - { |
2691 | | - return nullptr; |
2692 | | - } |
2693 | | - |
2694 | | - py::pyobj_handle sequence_bases{PyTuple_Pack(2, object_type, sequence_type.get())}; |
2695 | | - |
2696 | | - if (!sequence_bases) |
2697 | | - { |
2698 | | - return nullptr; |
2699 | | - } |
2700 | | - |
2701 | | - py::pyobj_handle mutable_sequence_type{PyObject_GetAttrString(collections_abc_module.get(), "MutableSequence")}; |
2702 | | - |
2703 | | - if (!mutable_sequence_type) |
2704 | | - { |
2705 | | - return nullptr; |
2706 | | - } |
2707 | | - |
2708 | | - py::pyobj_handle mutable_sequence_bases{PyTuple_Pack(2, object_type, mutable_sequence_type.get())}; |
2709 | | - |
2710 | | - if (!mutable_sequence_bases) |
2711 | | - { |
2712 | | - return nullptr; |
2713 | | - } |
2714 | | - |
2715 | | - py::pyobj_handle mapping_type{PyObject_GetAttrString(collections_abc_module.get(), "Mapping")}; |
2716 | | - |
2717 | | - if (!mapping_type) |
2718 | | - { |
2719 | | - return nullptr; |
2720 | | - } |
2721 | | - |
2722 | | - py::pyobj_handle mapping_bases{PyTuple_Pack(2, object_type, mapping_type.get())}; |
2723 | | - |
2724 | | - if (!mapping_bases) |
2725 | | - { |
2726 | | - return nullptr; |
2727 | | - } |
2728 | | - |
2729 | | - py::pyobj_handle mutable_mapping_type{PyObject_GetAttrString(collections_abc_module.get(), "MutableMapping")}; |
2730 | | - |
2731 | | - if (!mutable_mapping_type) |
2732 | | - { |
2733 | | - return nullptr; |
2734 | | - } |
2735 | | - |
2736 | | - py::pyobj_handle mutable_mapping_bases{PyTuple_Pack(2, object_type, mutable_mapping_type.get())}; |
2737 | | - |
2738 | | - if (!mutable_mapping_bases) |
| 2675 | + if (!object_bases) |
2739 | 2676 | { |
2740 | 2677 | return nullptr; |
2741 | 2678 | } |
2742 | 2679 |
|
2743 | 2680 | auto state = reinterpret_cast<module_state*>(PyModule_GetState(module.get())); |
2744 | 2681 | assert(state); |
2745 | 2682 |
|
2746 | | - state->type_ImageVariableDescriptorPreview = py::register_python_type(module.get(), type_name_ImageVariableDescriptorPreview, &type_spec_ImageVariableDescriptorPreview, bases.get(), nullptr); |
| 2683 | + state->type_ImageVariableDescriptorPreview = py::register_python_type(module.get(), type_name_ImageVariableDescriptorPreview, &type_spec_ImageVariableDescriptorPreview, object_bases.get(), nullptr); |
2747 | 2684 | if (!state->type_ImageVariableDescriptorPreview) |
2748 | 2685 | { |
2749 | 2686 | return nullptr; |
2750 | 2687 | } |
2751 | 2688 |
|
2752 | | - state->type_InferencingOptionsPreview = py::register_python_type(module.get(), type_name_InferencingOptionsPreview, &type_spec_InferencingOptionsPreview, bases.get(), nullptr); |
| 2689 | + state->type_InferencingOptionsPreview = py::register_python_type(module.get(), type_name_InferencingOptionsPreview, &type_spec_InferencingOptionsPreview, object_bases.get(), nullptr); |
2753 | 2690 | if (!state->type_InferencingOptionsPreview) |
2754 | 2691 | { |
2755 | 2692 | return nullptr; |
2756 | 2693 | } |
2757 | 2694 |
|
2758 | | - state->type_LearningModelBindingPreview = py::register_python_type(module.get(), type_name_LearningModelBindingPreview, &type_spec_LearningModelBindingPreview, mapping_bases.get(), nullptr); |
| 2695 | + state->type_LearningModelBindingPreview = py::register_python_type(module.get(), type_name_LearningModelBindingPreview, &type_spec_LearningModelBindingPreview, object_bases.get(), nullptr); |
2759 | 2696 | if (!state->type_LearningModelBindingPreview) |
2760 | 2697 | { |
2761 | 2698 | return nullptr; |
2762 | 2699 | } |
2763 | 2700 |
|
2764 | | - state->type_LearningModelDescriptionPreview = py::register_python_type(module.get(), type_name_LearningModelDescriptionPreview, &type_spec_LearningModelDescriptionPreview, bases.get(), nullptr); |
| 2701 | + state->type_LearningModelDescriptionPreview = py::register_python_type(module.get(), type_name_LearningModelDescriptionPreview, &type_spec_LearningModelDescriptionPreview, object_bases.get(), nullptr); |
2765 | 2702 | if (!state->type_LearningModelDescriptionPreview) |
2766 | 2703 | { |
2767 | 2704 | return nullptr; |
2768 | 2705 | } |
2769 | 2706 |
|
2770 | | - state->type_LearningModelEvaluationResultPreview = py::register_python_type(module.get(), type_name_LearningModelEvaluationResultPreview, &type_spec_LearningModelEvaluationResultPreview, bases.get(), nullptr); |
| 2707 | + state->type_LearningModelEvaluationResultPreview = py::register_python_type(module.get(), type_name_LearningModelEvaluationResultPreview, &type_spec_LearningModelEvaluationResultPreview, object_bases.get(), nullptr); |
2771 | 2708 | if (!state->type_LearningModelEvaluationResultPreview) |
2772 | 2709 | { |
2773 | 2710 | return nullptr; |
2774 | 2711 | } |
2775 | 2712 |
|
2776 | | - state->type_LearningModelPreview = py::register_python_type(module.get(), type_name_LearningModelPreview, &type_spec_LearningModelPreview, bases.get(), nullptr); |
| 2713 | + state->type_LearningModelPreview = py::register_python_type(module.get(), type_name_LearningModelPreview, &type_spec_LearningModelPreview, object_bases.get(), nullptr); |
2777 | 2714 | if (!state->type_LearningModelPreview) |
2778 | 2715 | { |
2779 | 2716 | return nullptr; |
2780 | 2717 | } |
2781 | 2718 |
|
2782 | | - state->type_LearningModelVariableDescriptorPreview = py::register_python_type(module.get(), type_name_LearningModelVariableDescriptorPreview, &type_spec_LearningModelVariableDescriptorPreview, bases.get(), nullptr); |
| 2719 | + state->type_LearningModelVariableDescriptorPreview = py::register_python_type(module.get(), type_name_LearningModelVariableDescriptorPreview, &type_spec_LearningModelVariableDescriptorPreview, object_bases.get(), nullptr); |
2783 | 2720 | if (!state->type_LearningModelVariableDescriptorPreview) |
2784 | 2721 | { |
2785 | 2722 | return nullptr; |
2786 | 2723 | } |
2787 | 2724 |
|
2788 | | - state->type_MapVariableDescriptorPreview = py::register_python_type(module.get(), type_name_MapVariableDescriptorPreview, &type_spec_MapVariableDescriptorPreview, bases.get(), nullptr); |
| 2725 | + state->type_MapVariableDescriptorPreview = py::register_python_type(module.get(), type_name_MapVariableDescriptorPreview, &type_spec_MapVariableDescriptorPreview, object_bases.get(), nullptr); |
2789 | 2726 | if (!state->type_MapVariableDescriptorPreview) |
2790 | 2727 | { |
2791 | 2728 | return nullptr; |
2792 | 2729 | } |
2793 | 2730 |
|
2794 | | - state->type_SequenceVariableDescriptorPreview = py::register_python_type(module.get(), type_name_SequenceVariableDescriptorPreview, &type_spec_SequenceVariableDescriptorPreview, bases.get(), nullptr); |
| 2731 | + state->type_SequenceVariableDescriptorPreview = py::register_python_type(module.get(), type_name_SequenceVariableDescriptorPreview, &type_spec_SequenceVariableDescriptorPreview, object_bases.get(), nullptr); |
2795 | 2732 | if (!state->type_SequenceVariableDescriptorPreview) |
2796 | 2733 | { |
2797 | 2734 | return nullptr; |
2798 | 2735 | } |
2799 | 2736 |
|
2800 | | - state->type_TensorVariableDescriptorPreview = py::register_python_type(module.get(), type_name_TensorVariableDescriptorPreview, &type_spec_TensorVariableDescriptorPreview, bases.get(), nullptr); |
| 2737 | + state->type_TensorVariableDescriptorPreview = py::register_python_type(module.get(), type_name_TensorVariableDescriptorPreview, &type_spec_TensorVariableDescriptorPreview, object_bases.get(), nullptr); |
2801 | 2738 | if (!state->type_TensorVariableDescriptorPreview) |
2802 | 2739 | { |
2803 | 2740 | return nullptr; |
2804 | 2741 | } |
2805 | 2742 |
|
2806 | | - state->type_ILearningModelVariableDescriptorPreview = py::register_python_type(module.get(), type_name_ILearningModelVariableDescriptorPreview, &type_spec_ILearningModelVariableDescriptorPreview, bases.get(), nullptr); |
| 2743 | + state->type_ILearningModelVariableDescriptorPreview = py::register_python_type(module.get(), type_name_ILearningModelVariableDescriptorPreview, &type_spec_ILearningModelVariableDescriptorPreview, object_bases.get(), nullptr); |
2807 | 2744 | if (!state->type_ILearningModelVariableDescriptorPreview) |
2808 | 2745 | { |
2809 | 2746 | return nullptr; |
|
0 commit comments