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

Commit f1154f4

Browse files
committed
Update PyWinRT to v1.0.0-beta.3
automatically generated changes
1 parent 95faef5 commit f1154f4

File tree

1,122 files changed

+10725
-19530
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

+10725
-19530
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions

generate.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
param ([switch]$skipNugetInstall)
22

3-
$pywinrt_version = '1.0.0-beta.2'
3+
$pywinrt_version = '1.0.0-beta.3'
44
$cppwinrt_version = '2.0.220110.5'
55
$windows_sdk_version = '10.0.22000.0'
66
$repoRootPath = (Get-Item $PSScriptRoot).FullName
77
$nugetPath = "$repoRootPath\_nuget"
88
$projectionPath = "$PSScriptRoot"
99

1010
if (!$skipNugetInstall) {
11-
nuget install PyWinRT -Version $pywinrt_version -Prerelease -ExcludeVersion -OutputDirectory "$nugetPath"
11+
nuget install PyWinRT -Version $pywinrt_version -Prerelease -NoCache -ExcludeVersion -OutputDirectory "$nugetPath"
1212
nuget install Microsoft.Windows.CppWinRT -Version $cppwinrt_version -ExcludeVersion -OutputDirectory "$nugetPath"
1313
}
1414

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.2
1+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
from . import _winrt
44

pywinrt/winsdk/_winrt.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2
1+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33

44
import sys
55

6-
if sys.version >= (3, 9):
6+
if sys.version_info >= (3, 9):
77
from typing import Annotated
88
# type aliases with struct format string annotation
99
Boolean = Annotated[bool, "?"]

pywinrt/winsdk/src/_winrt.cpp

Lines changed: 8 additions & 2 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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#include "pybase.h"
44
#include <Shobjidl.h>
@@ -144,7 +144,13 @@ static PyObject* initialize_with_window(PyObject* /*unused*/, PyObject* args) no
144144
try
145145
{
146146
auto winrt_obj = py::convert_to<winrt::Windows::Foundation::IInspectable>(obj);
147-
winrt_obj.as<IInitializeWithWindow>()->Initialize(reinterpret_cast<HWND>(hwnd));
147+
auto result = winrt_obj.as<IInitializeWithWindow>()->Initialize(
148+
reinterpret_cast<HWND>(hwnd));
149+
150+
if (result != S_OK)
151+
{
152+
winrt::throw_hresult(result);
153+
}
148154
}
149155
catch (...)
150156
{

pywinrt/winsdk/src/py.Windows.AI.MachineLearning.Preview.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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#include "pybase.h"
44
#include "py.Windows.AI.MachineLearning.Preview.h"

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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#pragma once
44

pywinrt/winsdk/src/py.Windows.AI.MachineLearning.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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#include "pybase.h"
44
#include "py.Windows.AI.MachineLearning.h"

pywinrt/winsdk/src/py.Windows.AI.MachineLearning.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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#pragma once
44

pywinrt/winsdk/src/py.Windows.ApplicationModel.Activation.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.2
1+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.3
22

33
#include "pybase.h"
44
#include "py.Windows.ApplicationModel.Activation.h"

0 commit comments

Comments
 (0)