winrt-Windows.ApplicationModel.ExtendedExecution.Foreground 2.2.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/PKG-INFO +4 -4
  2. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/all-requirements.txt +2 -2
  3. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/py.Windows.ApplicationModel.ExtendedExecution.Foreground.cpp +71 -31
  4. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0/winrt/_winrt_windows_applicationmodel_extendedexecution_foreground.pyi +49 -0
  9. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt/windows/applicationmodel/extendedexecution/foreground/__init__.py +5 -4
  10. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/PKG-INFO +4 -4
  11. winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/requires.txt +4 -0
  12. winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0/winrt/_winrt_windows_applicationmodel_extendedexecution_foreground.pyi +0 -44
  14. winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/requires.txt +0 -4
  15. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/README.md +0 -0
  16. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/setup.cfg +0 -0
  17. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt/windows/applicationmodel/extendedexecution/foreground/py.typed +0 -0
  18. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_extendedexecution_foreground-2.2.0 → winrt_windows_applicationmodel_extendedexecution_foreground-3.0.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.ExtendedExecution.Foreground
3
- Version: 2.2.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-Windows.Foundation[all]==2.2.0
3
+ winrt-Windows.Foundation[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.ExtendedExecution.Foreground.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.Reason());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.Reason();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -74,21 +78,18 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
74
78
  static PyMethodDef _methods_ExtendedExecutionForegroundRevokedEventArgs[] = {
75
79
  { "_assign_array_", _assign_array_ExtendedExecutionForegroundRevokedEventArgs, METH_O | METH_STATIC, nullptr },
76
80
  { "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionForegroundRevokedEventArgs), METH_O | METH_STATIC, nullptr },
77
- { }
78
- };
81
+ { }};
79
82
 
80
83
  static PyGetSetDef _getset_ExtendedExecutionForegroundRevokedEventArgs[] = {
81
84
  { "reason", reinterpret_cast<getter>(ExtendedExecutionForegroundRevokedEventArgs_get_Reason), nullptr, nullptr, nullptr },
82
- { }
83
- };
85
+ { }};
84
86
 
85
87
  static PyType_Slot _type_slots_ExtendedExecutionForegroundRevokedEventArgs[] = {
86
88
  { Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionForegroundRevokedEventArgs) },
87
89
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionForegroundRevokedEventArgs) },
88
90
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionForegroundRevokedEventArgs) },
89
91
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionForegroundRevokedEventArgs) },
90
- { }
91
- };
92
+ { }};
92
93
 
93
94
  static PyType_Spec type_spec_ExtendedExecutionForegroundRevokedEventArgs = {
94
95
  "winrt._winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundRevokedEventArgs",
@@ -101,13 +102,13 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
101
102
 
102
103
  static PyObject* _new_ExtendedExecutionForegroundSession(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
103
104
  {
104
- if (kwds != nullptr)
105
+ if (kwds)
105
106
  {
106
107
  py::set_invalid_kwd_args_error();
107
108
  return nullptr;
108
109
  }
109
110
 
110
- auto arg_count = PyTuple_Size(args);
111
+ auto arg_count = PyTuple_GET_SIZE(args);
111
112
  if (arg_count == 0)
112
113
  {
113
114
  try
@@ -138,7 +139,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
138
139
 
139
140
  static PyObject* ExtendedExecutionForegroundSession_Close(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* args) noexcept
140
141
  {
141
- auto arg_count = PyTuple_Size(args);
142
+ auto arg_count = PyTuple_GET_SIZE(args);
142
143
 
143
144
  if (arg_count == 0)
144
145
  {
@@ -157,7 +158,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
157
158
  return nullptr;
158
159
  }
159
160
 
160
- self->obj.Close();
161
+ {
162
+ auto _gil = release_gil();
163
+ self->obj.Close();
164
+ }
165
+
161
166
  Py_RETURN_NONE;
162
167
  }
163
168
  catch (...)
@@ -175,7 +180,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
175
180
 
176
181
  static PyObject* ExtendedExecutionForegroundSession_RequestExtensionAsync(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* args) noexcept
177
182
  {
178
- auto arg_count = PyTuple_Size(args);
183
+ auto arg_count = PyTuple_GET_SIZE(args);
179
184
 
180
185
  if (arg_count == 0)
181
186
  {
@@ -194,7 +199,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
194
199
  return nullptr;
195
200
  }
196
201
 
197
- return py::convert(self->obj.RequestExtensionAsync());
202
+ return py::convert([&]()
203
+ {
204
+ auto _gil = release_gil();
205
+ return self->obj.RequestExtensionAsync();
206
+ }());
198
207
  }
199
208
  catch (...)
200
209
  {
@@ -226,7 +235,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
226
235
  return nullptr;
227
236
  }
228
237
 
229
- return py::convert(self->obj.Reason());
238
+ return py::convert([&]()
239
+ {
240
+ auto _gil = release_gil();
241
+ return self->obj.Reason();
242
+ }());
230
243
  }
231
244
  catch (...)
232
245
  {
@@ -237,7 +250,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
237
250
 
238
251
  static int ExtendedExecutionForegroundSession_put_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg, void* /*unused*/) noexcept
239
252
  {
240
- if (arg == nullptr)
253
+ if (!arg)
241
254
  {
242
255
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
243
256
  return -1;
@@ -260,7 +273,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
260
273
 
261
274
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason>(arg);
262
275
 
263
- self->obj.Reason(param0);
276
+ {
277
+ auto _gil = release_gil();
278
+ self->obj.Reason(param0);
279
+ }
280
+
264
281
  return 0;
265
282
  }
266
283
  catch (...)
@@ -287,7 +304,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
287
304
  return nullptr;
288
305
  }
289
306
 
290
- return py::convert(self->obj.Description());
307
+ return py::convert([&]()
308
+ {
309
+ auto _gil = release_gil();
310
+ return self->obj.Description();
311
+ }());
291
312
  }
292
313
  catch (...)
293
314
  {
@@ -298,7 +319,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
298
319
 
299
320
  static int ExtendedExecutionForegroundSession_put_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg, void* /*unused*/) noexcept
300
321
  {
301
- if (arg == nullptr)
322
+ if (!arg)
302
323
  {
303
324
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
304
325
  return -1;
@@ -321,7 +342,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
321
342
 
322
343
  auto param0 = py::convert_to<winrt::hstring>(arg);
323
344
 
324
- self->obj.Description(param0);
345
+ {
346
+ auto _gil = release_gil();
347
+ self->obj.Description(param0);
348
+ }
349
+
325
350
  return 0;
326
351
  }
327
352
  catch (...)
@@ -350,7 +375,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
350
375
 
351
376
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable, winrt::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedEventArgs>>(arg);
352
377
 
353
- return py::convert(self->obj.Revoked(param0));
378
+ return py::convert([&]()
379
+ {
380
+ auto _gil = release_gil();
381
+ return self->obj.Revoked(param0);
382
+ }());
354
383
  }
355
384
  catch (...)
356
385
  {
@@ -378,7 +407,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
378
407
 
379
408
  auto param0 = py::convert_to<winrt::event_token>(arg);
380
409
 
381
- self->obj.Revoked(param0);
410
+ {
411
+ auto _gil = release_gil();
412
+ self->obj.Revoked(param0);
413
+ }
414
+
382
415
  Py_RETURN_NONE;
383
416
  }
384
417
  catch (...)
@@ -421,7 +454,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
421
454
  {
422
455
  try
423
456
  {
424
- self->obj.Close();
457
+ {
458
+ auto _gil = py::release_gil();
459
+ self->obj.Close();
460
+ }
461
+
425
462
  Py_RETURN_FALSE;
426
463
  }
427
464
  catch (...)
@@ -440,22 +477,19 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
440
477
  { "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionForegroundSession), METH_O | METH_STATIC, nullptr },
441
478
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_ExtendedExecutionForegroundSession), METH_NOARGS, nullptr },
442
479
  { "__exit__", reinterpret_cast<PyCFunction>(_exit_ExtendedExecutionForegroundSession), METH_VARARGS, nullptr },
443
- { }
444
- };
480
+ { }};
445
481
 
446
482
  static PyGetSetDef _getset_ExtendedExecutionForegroundSession[] = {
447
483
  { "reason", reinterpret_cast<getter>(ExtendedExecutionForegroundSession_get_Reason), reinterpret_cast<setter>(ExtendedExecutionForegroundSession_put_Reason), nullptr, nullptr },
448
484
  { "description", reinterpret_cast<getter>(ExtendedExecutionForegroundSession_get_Description), reinterpret_cast<setter>(ExtendedExecutionForegroundSession_put_Description), nullptr, nullptr },
449
- { }
450
- };
485
+ { }};
451
486
 
452
487
  static PyType_Slot _type_slots_ExtendedExecutionForegroundSession[] = {
453
488
  { Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionForegroundSession) },
454
489
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionForegroundSession) },
455
490
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionForegroundSession) },
456
491
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionForegroundSession) },
457
- { }
458
- };
492
+ { }};
459
493
 
460
494
  static PyType_Spec type_spec_ExtendedExecutionForegroundSession = {
461
495
  "winrt._winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundSession",
@@ -496,6 +530,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution_foregrou
496
530
  return nullptr;
497
531
  }
498
532
 
533
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
534
+ if (!inspectable_meta_type)
535
+ {
536
+ return nullptr;
537
+ }
538
+
499
539
  auto object_type = py::get_object_type();
500
540
  if (!object_type)
501
541
  {
@@ -509,13 +549,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution_foregrou
509
549
  return nullptr;
510
550
  }
511
551
 
512
- py::pytype_handle ExtendedExecutionForegroundRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionForegroundRevokedEventArgs, object_bases.get(), nullptr)};
552
+ py::pytype_handle ExtendedExecutionForegroundRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionForegroundRevokedEventArgs, object_bases.get(), inspectable_meta_type)};
513
553
  if (!ExtendedExecutionForegroundRevokedEventArgs_type)
514
554
  {
515
555
  return nullptr;
516
556
  }
517
557
 
518
- py::pytype_handle ExtendedExecutionForegroundSession_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionForegroundSession, object_bases.get(), nullptr)};
558
+ py::pytype_handle ExtendedExecutionForegroundSession_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionForegroundSession, object_bases.get(), inspectable_meta_type)};
519
559
  if (!ExtendedExecutionForegroundSession_type)
520
560
  {
521
561
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_applicationmodel_extendedexecution_foreground",
@@ -0,0 +1,49 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+
14
+ from winrt.windows.applicationmodel.extendedexecution.foreground import ExtendedExecutionForegroundReason, ExtendedExecutionForegroundResult, ExtendedExecutionForegroundRevokedReason
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ @typing.final
19
+ class ExtendedExecutionForegroundRevokedEventArgs(winrt.system.Object):
20
+ # Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedReason Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs::get_Reason()
21
+ @_property
22
+ def reason(self) -> ExtendedExecutionForegroundRevokedReason: ...
23
+
24
+ @typing.final
25
+ class ExtendedExecutionForegroundSession(winrt.system.Object, windows_foundation.IClosable):
26
+ def __enter__(self: Self) -> Self: ...
27
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
28
+ def __new__(cls: typing.Type[Self]) -> Self: ...
29
+ # System.Void Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::Close()
30
+ def close(self) -> None: ...
31
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundResult> Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::RequestExtensionAsync()
32
+ def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionForegroundResult]: ...
33
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::add_Revoked(Windows.Foundation.TypedEventHandler`2<System.Object,Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs>)
34
+ def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionForegroundRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
35
+ # System.Void Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::remove_Revoked(Windows.Foundation.EventRegistrationToken)
36
+ def remove_revoked(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
37
+ # Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundReason Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::get_Reason()
38
+ @_property
39
+ def reason(self) -> ExtendedExecutionForegroundReason: ...
40
+ # System.Void Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::put_Reason(Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundReason)
41
+ @reason.setter
42
+ def reason(self, value: ExtendedExecutionForegroundReason) -> None: ...
43
+ # System.String Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::get_Description()
44
+ @_property
45
+ def description(self) -> str: ...
46
+ # System.Void Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession::put_Description(System.String)
47
+ @description.setter
48
+ def description(self, value: str) -> None: ...
49
+
@@ -1,9 +1,12 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_applicationmodel_extendedexecution_foreground
6
+ from winrt._winrt_windows_applicationmodel_extendedexecution_foreground import (
7
+ ExtendedExecutionForegroundRevokedEventArgs,
8
+ ExtendedExecutionForegroundSession,
9
+ )
7
10
 
8
11
  __all__ = [
9
12
  "ExtendedExecutionForegroundReason",
@@ -27,5 +30,3 @@ class ExtendedExecutionForegroundRevokedReason(enum.IntEnum):
27
30
  RESUMED = 0
28
31
  SYSTEM_POLICY = 1
29
32
 
30
- ExtendedExecutionForegroundRevokedEventArgs = _winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundRevokedEventArgs
31
- ExtendedExecutionForegroundSession = _winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundSession
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.ExtendedExecution.Foreground
3
- Version: 2.2.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -1,44 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation as windows_foundation
13
-
14
- from winrt.windows.applicationmodel.extendedexecution.foreground import ExtendedExecutionForegroundReason, ExtendedExecutionForegroundResult, ExtendedExecutionForegroundRevokedReason
15
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class ExtendedExecutionForegroundRevokedEventArgs(winrt.system.Object):
20
- @staticmethod
21
- def _from(obj: winrt.system.Object, /) -> ExtendedExecutionForegroundRevokedEventArgs: ...
22
- @_property
23
- def reason(self) -> ExtendedExecutionForegroundRevokedReason: ...
24
-
25
- @typing.final
26
- class ExtendedExecutionForegroundSession(winrt.system.Object):
27
- def __enter__(self: Self) -> Self: ...
28
- def __exit__(self, *args) -> None: ...
29
- @staticmethod
30
- def _from(obj: winrt.system.Object, /) -> ExtendedExecutionForegroundSession: ...
31
- def __new__(cls: typing.Type[ExtendedExecutionForegroundSession]) -> ExtendedExecutionForegroundSession: ...
32
- def close(self) -> None: ...
33
- def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionForegroundResult]: ...
34
- def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionForegroundRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
35
- def remove_revoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
36
- @_property
37
- def reason(self) -> ExtendedExecutionForegroundReason: ...
38
- @reason.setter
39
- def reason(self, value: ExtendedExecutionForegroundReason) -> None: ...
40
- @_property
41
- def description(self) -> str: ...
42
- @description.setter
43
- def description(self, value: str) -> None: ...
44
-