Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit e74c577

Browse files
committed
Update generated code using PyWinRT v1.0.0-beta.2
1 parent b36b621 commit e74c577

File tree

1,122 files changed

+35275
-29646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,122 files changed

+35275
-29646
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## [Unreleased]
66

7+
### Changed
8+
9+
- Update PyWinRT to [v1.0.0-beta.2](https://github.com/pywinrt/pywinrt/releases/tag/v1.0.0-beta.2).
10+
711
## [v1.0.0b1] - 2022-01-27
812

913
- Initial release.

generate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param ([switch]$skipNugetInstall)
22

3-
$pywinrt_version = '1.0.0-beta.1'
3+
$pywinrt_version = '1.0.0-beta.2'
44
$cppwinrt_version = '2.0.220110.5'
55
$windows_sdk_version = '10.0.22000.0'
66
$repoRootPath = (Get-Item $PSScriptRoot).FullName

pywinrt/winsdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
from . import _winrt
44

pywinrt/winsdk/_winrt.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
import sys

pywinrt/winsdk/src/_winrt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
#include "pybase.h"
44
#include <Shobjidl.h>

pywinrt/winsdk/src/py.Windows.AI.MachineLearning.Preview.cpp

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
#include "pybase.h"
44
#include "py.Windows.AI.MachineLearning.Preview.h"
@@ -160,7 +160,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
160160
{ Py_tp_dealloc, _dealloc_ImageVariableDescriptorPreview },
161161
{ Py_tp_methods, _methods_ImageVariableDescriptorPreview },
162162
{ Py_tp_getset, _getset_ImageVariableDescriptorPreview },
163-
{ 0, nullptr },
163+
{ },
164164
};
165165

166166
static PyType_Spec _type_spec_ImageVariableDescriptorPreview =
@@ -397,7 +397,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
397397
{ Py_tp_dealloc, _dealloc_InferencingOptionsPreview },
398398
{ Py_tp_methods, _methods_InferencingOptionsPreview },
399399
{ Py_tp_getset, _getset_InferencingOptionsPreview },
400-
{ 0, nullptr },
400+
{ },
401401
};
402402

403403
static PyType_Spec _type_spec_InferencingOptionsPreview =
@@ -669,6 +669,19 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
669669
}
670670
}
671671

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+
672685
static Py_ssize_t _map_length_LearningModelBindingPreview(py::wrapper::Windows::AI::MachineLearning::Preview::LearningModelBindingPreview* self) noexcept
673686
{
674687
try
@@ -718,9 +731,10 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
718731
{ Py_tp_methods, _methods_LearningModelBindingPreview },
719732
{ Py_tp_getset, _getset_LearningModelBindingPreview },
720733
{ Py_tp_iter, _iterator_LearningModelBindingPreview },
734+
{ Py_sq_contains, _map_contains_LearningModelBindingPreview },
721735
{ Py_mp_length, _map_length_LearningModelBindingPreview },
722736
{ Py_mp_subscript, _map_subscript_LearningModelBindingPreview },
723-
{ 0, nullptr },
737+
{ },
724738
};
725739

726740
static PyType_Spec _type_spec_LearningModelBindingPreview =
@@ -889,7 +903,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
889903
{ Py_tp_dealloc, _dealloc_LearningModelDescriptionPreview },
890904
{ Py_tp_methods, _methods_LearningModelDescriptionPreview },
891905
{ Py_tp_getset, _getset_LearningModelDescriptionPreview },
892-
{ 0, nullptr },
906+
{ },
893907
};
894908

895909
static PyType_Spec _type_spec_LearningModelDescriptionPreview =
@@ -974,7 +988,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
974988
{ Py_tp_dealloc, _dealloc_LearningModelEvaluationResultPreview },
975989
{ Py_tp_methods, _methods_LearningModelEvaluationResultPreview },
976990
{ Py_tp_getset, _getset_LearningModelEvaluationResultPreview },
977-
{ 0, nullptr },
991+
{ },
978992
};
979993

980994
static PyType_Spec _type_spec_LearningModelEvaluationResultPreview =
@@ -1187,7 +1201,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
11871201
{ Py_tp_dealloc, _dealloc_LearningModelPreview },
11881202
{ Py_tp_methods, _methods_LearningModelPreview },
11891203
{ Py_tp_getset, _getset_LearningModelPreview },
1190-
{ 0, nullptr },
1204+
{ },
11911205
};
11921206

11931207
static PyType_Spec _type_spec_LearningModelPreview =
@@ -1300,7 +1314,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
13001314
{ Py_tp_dealloc, _dealloc_LearningModelVariableDescriptorPreview },
13011315
{ Py_tp_methods, _methods_LearningModelVariableDescriptorPreview },
13021316
{ Py_tp_getset, _getset_LearningModelVariableDescriptorPreview },
1303-
{ 0, nullptr },
1317+
{ },
13041318
};
13051319

13061320
static PyType_Spec _type_spec_LearningModelVariableDescriptorPreview =
@@ -1469,7 +1483,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
14691483
{ Py_tp_dealloc, _dealloc_MapVariableDescriptorPreview },
14701484
{ Py_tp_methods, _methods_MapVariableDescriptorPreview },
14711485
{ Py_tp_getset, _getset_MapVariableDescriptorPreview },
1472-
{ 0, nullptr },
1486+
{ },
14731487
};
14741488

14751489
static PyType_Spec _type_spec_MapVariableDescriptorPreview =
@@ -1596,7 +1610,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
15961610
{ Py_tp_dealloc, _dealloc_SequenceVariableDescriptorPreview },
15971611
{ Py_tp_methods, _methods_SequenceVariableDescriptorPreview },
15981612
{ Py_tp_getset, _getset_SequenceVariableDescriptorPreview },
1599-
{ 0, nullptr },
1613+
{ },
16001614
};
16011615

16021616
static PyType_Spec _type_spec_SequenceVariableDescriptorPreview =
@@ -1737,7 +1751,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
17371751
{ Py_tp_dealloc, _dealloc_TensorVariableDescriptorPreview },
17381752
{ Py_tp_methods, _methods_TensorVariableDescriptorPreview },
17391753
{ Py_tp_getset, _getset_TensorVariableDescriptorPreview },
1740-
{ 0, nullptr },
1754+
{ },
17411755
};
17421756

17431757
static PyType_Spec _type_spec_TensorVariableDescriptorPreview =
@@ -1850,7 +1864,7 @@ namespace py::cpp::Windows::AI::MachineLearning::Preview
18501864
{ Py_tp_dealloc, _dealloc_ILearningModelVariableDescriptorPreview },
18511865
{ Py_tp_methods, _methods_ILearningModelVariableDescriptorPreview },
18521866
{ Py_tp_getset, _getset_ILearningModelVariableDescriptorPreview },
1853-
{ 0, nullptr },
1867+
{ },
18541868
};
18551869

18561870
static PyType_Spec _type_spec_ILearningModelVariableDescriptorPreview =

pywinrt/winsdk/src/py.Windows.AI.MachineLearning.Preview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33
#pragma once
44

0 commit comments

Comments
 (0)