winrt-Windows.ApplicationModel.Calls.Background 2.0.1__tar.gz → 2.2.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 (19) hide show
  1. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/PKG-INFO +4 -4
  2. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/all-requirements.txt +2 -2
  3. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/py.Windows.ApplicationModel.Calls.Background.cpp +295 -176
  4. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_calls_background-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt/_winrt_windows_applicationmodel_calls_background.pyi +2 -2
  8. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt/windows/applicationmodel/calls/background/__init__.py +2 -2
  9. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt_Windows.ApplicationModel.Calls.Background.egg-info/PKG-INFO +4 -4
  10. winrt_windows_applicationmodel_calls_background-2.2.0/winrt_Windows.ApplicationModel.Calls.Background.egg-info/requires.txt +4 -0
  11. winrt_windows_applicationmodel_calls_background-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_applicationmodel_calls_background-2.0.1/winrt_Windows.ApplicationModel.Calls.Background.egg-info/requires.txt +0 -4
  13. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/README.md +0 -0
  14. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/setup.cfg +0 -0
  15. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/setup.py +0 -0
  16. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt/windows/applicationmodel/calls/background/py.typed +0 -0
  17. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt_Windows.ApplicationModel.Calls.Background.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt_Windows.ApplicationModel.Calls.Background.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_applicationmodel_calls_background-2.0.1 → winrt_windows_applicationmodel_calls_background-2.2.0}/winrt_Windows.ApplicationModel.Calls.Background.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Calls.Background
3
- Version: 2.0.1
3
+ Version: 2.2.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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.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.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-Windows.Foundation[all]==2.0.1
3
+ winrt-Windows.Foundation[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Calls.Background.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::ApplicationModel::Calls::Background
7
6
  {
8
7
  // ----- PhoneCallBlockedTriggerDetails class --------------------
@@ -24,14 +23,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
24
23
 
25
24
  static PyObject* PhoneCallBlockedTriggerDetails_get_CallBlockedReason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
26
25
  {
27
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"CallBlockedReason"))
28
- {
29
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
- return nullptr;
31
- }
32
-
33
26
  try
34
27
  {
28
+ static std::optional<bool> is_property_present{};
29
+
30
+ if (!is_property_present.has_value())
31
+ {
32
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"CallBlockedReason");
33
+ }
34
+
35
+ if (!is_property_present.value())
36
+ {
37
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
38
+ return nullptr;
39
+ }
40
+
35
41
  return py::convert(self->obj.CallBlockedReason());
36
42
  }
37
43
  catch (...)
@@ -43,14 +49,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
43
49
 
44
50
  static PyObject* PhoneCallBlockedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
45
51
  {
46
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"LineId"))
47
- {
48
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
49
- return nullptr;
50
- }
51
-
52
52
  try
53
53
  {
54
+ static std::optional<bool> is_property_present{};
55
+
56
+ if (!is_property_present.has_value())
57
+ {
58
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"LineId");
59
+ }
60
+
61
+ if (!is_property_present.value())
62
+ {
63
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
64
+ return nullptr;
65
+ }
66
+
54
67
  return py::convert(self->obj.LineId());
55
68
  }
56
69
  catch (...)
@@ -62,14 +75,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
62
75
 
63
76
  static PyObject* PhoneCallBlockedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
64
77
  {
65
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"PhoneNumber"))
66
- {
67
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
68
- return nullptr;
69
- }
70
-
71
78
  try
72
79
  {
80
+ static std::optional<bool> is_property_present{};
81
+
82
+ if (!is_property_present.has_value())
83
+ {
84
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallBlockedTriggerDetails", L"PhoneNumber");
85
+ }
86
+
87
+ if (!is_property_present.value())
88
+ {
89
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
90
+ return nullptr;
91
+ }
92
+
73
93
  return py::convert(self->obj.PhoneNumber());
74
94
  }
75
95
  catch (...)
@@ -116,23 +136,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
116
136
  { }
117
137
  };
118
138
 
119
- static PyType_Slot _type_slots_PhoneCallBlockedTriggerDetails[] =
120
- {
139
+ static PyType_Slot _type_slots_PhoneCallBlockedTriggerDetails[] = {
121
140
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallBlockedTriggerDetails) },
122
141
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallBlockedTriggerDetails) },
123
142
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallBlockedTriggerDetails) },
124
143
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallBlockedTriggerDetails) },
125
- { },
144
+ { }
126
145
  };
127
146
 
128
- static PyType_Spec type_spec_PhoneCallBlockedTriggerDetails =
129
- {
147
+ static PyType_Spec type_spec_PhoneCallBlockedTriggerDetails = {
130
148
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneCallBlockedTriggerDetails",
131
149
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails),
132
150
  0,
133
151
  Py_TPFLAGS_DEFAULT,
134
- _type_slots_PhoneCallBlockedTriggerDetails
135
- };
152
+ _type_slots_PhoneCallBlockedTriggerDetails};
136
153
 
137
154
  // ----- PhoneCallOriginDataRequestTriggerDetails class --------------------
138
155
 
@@ -153,14 +170,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
153
170
 
154
171
  static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
155
172
  {
156
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"PhoneNumber"))
157
- {
158
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
159
- return nullptr;
160
- }
161
-
162
173
  try
163
174
  {
175
+ static std::optional<bool> is_property_present{};
176
+
177
+ if (!is_property_present.has_value())
178
+ {
179
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"PhoneNumber");
180
+ }
181
+
182
+ if (!is_property_present.value())
183
+ {
184
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
185
+ return nullptr;
186
+ }
187
+
164
188
  return py::convert(self->obj.PhoneNumber());
165
189
  }
166
190
  catch (...)
@@ -172,14 +196,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
172
196
 
173
197
  static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_RequestId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
174
198
  {
175
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"RequestId"))
176
- {
177
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
178
- return nullptr;
179
- }
180
-
181
199
  try
182
200
  {
201
+ static std::optional<bool> is_property_present{};
202
+
203
+ if (!is_property_present.has_value())
204
+ {
205
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneCallOriginDataRequestTriggerDetails", L"RequestId");
206
+ }
207
+
208
+ if (!is_property_present.value())
209
+ {
210
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
211
+ return nullptr;
212
+ }
213
+
183
214
  return py::convert(self->obj.RequestId());
184
215
  }
185
216
  catch (...)
@@ -225,23 +256,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
225
256
  { }
226
257
  };
227
258
 
228
- static PyType_Slot _type_slots_PhoneCallOriginDataRequestTriggerDetails[] =
229
- {
259
+ static PyType_Slot _type_slots_PhoneCallOriginDataRequestTriggerDetails[] = {
230
260
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginDataRequestTriggerDetails) },
231
261
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOriginDataRequestTriggerDetails) },
232
262
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginDataRequestTriggerDetails) },
233
263
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginDataRequestTriggerDetails) },
234
- { },
264
+ { }
235
265
  };
236
266
 
237
- static PyType_Spec type_spec_PhoneCallOriginDataRequestTriggerDetails =
238
- {
267
+ static PyType_Spec type_spec_PhoneCallOriginDataRequestTriggerDetails = {
239
268
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneCallOriginDataRequestTriggerDetails",
240
269
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails),
241
270
  0,
242
271
  Py_TPFLAGS_DEFAULT,
243
- _type_slots_PhoneCallOriginDataRequestTriggerDetails
244
- };
272
+ _type_slots_PhoneCallOriginDataRequestTriggerDetails};
245
273
 
246
274
  // ----- PhoneIncomingCallDismissedTriggerDetails class --------------------
247
275
 
@@ -262,14 +290,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
262
290
 
263
291
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DismissalTime(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
264
292
  {
265
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DismissalTime"))
266
- {
267
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
268
- return nullptr;
269
- }
270
-
271
293
  try
272
294
  {
295
+ static std::optional<bool> is_property_present{};
296
+
297
+ if (!is_property_present.has_value())
298
+ {
299
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DismissalTime");
300
+ }
301
+
302
+ if (!is_property_present.value())
303
+ {
304
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
305
+ return nullptr;
306
+ }
307
+
273
308
  return py::convert(self->obj.DismissalTime());
274
309
  }
275
310
  catch (...)
@@ -281,14 +316,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
281
316
 
282
317
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
283
318
  {
284
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DisplayName"))
285
- {
286
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
287
- return nullptr;
288
- }
289
-
290
319
  try
291
320
  {
321
+ static std::optional<bool> is_property_present{};
322
+
323
+ if (!is_property_present.has_value())
324
+ {
325
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"DisplayName");
326
+ }
327
+
328
+ if (!is_property_present.value())
329
+ {
330
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
331
+ return nullptr;
332
+ }
333
+
292
334
  return py::convert(self->obj.DisplayName());
293
335
  }
294
336
  catch (...)
@@ -300,14 +342,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
300
342
 
301
343
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
302
344
  {
303
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"LineId"))
304
- {
305
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
306
- return nullptr;
307
- }
308
-
309
345
  try
310
346
  {
347
+ static std::optional<bool> is_property_present{};
348
+
349
+ if (!is_property_present.has_value())
350
+ {
351
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"LineId");
352
+ }
353
+
354
+ if (!is_property_present.value())
355
+ {
356
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
357
+ return nullptr;
358
+ }
359
+
311
360
  return py::convert(self->obj.LineId());
312
361
  }
313
362
  catch (...)
@@ -319,14 +368,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
319
368
 
320
369
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
321
370
  {
322
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"PhoneNumber"))
323
- {
324
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
325
- return nullptr;
326
- }
327
-
328
371
  try
329
372
  {
373
+ static std::optional<bool> is_property_present{};
374
+
375
+ if (!is_property_present.has_value())
376
+ {
377
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"PhoneNumber");
378
+ }
379
+
380
+ if (!is_property_present.value())
381
+ {
382
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
383
+ return nullptr;
384
+ }
385
+
330
386
  return py::convert(self->obj.PhoneNumber());
331
387
  }
332
388
  catch (...)
@@ -338,14 +394,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
338
394
 
339
395
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_Reason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
340
396
  {
341
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"Reason"))
342
- {
343
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
344
- return nullptr;
345
- }
346
-
347
397
  try
348
398
  {
399
+ static std::optional<bool> is_property_present{};
400
+
401
+ if (!is_property_present.has_value())
402
+ {
403
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"Reason");
404
+ }
405
+
406
+ if (!is_property_present.value())
407
+ {
408
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
409
+ return nullptr;
410
+ }
411
+
349
412
  return py::convert(self->obj.Reason());
350
413
  }
351
414
  catch (...)
@@ -357,14 +420,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
357
420
 
358
421
  static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_TextReplyMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
359
422
  {
360
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"TextReplyMessage"))
361
- {
362
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
363
- return nullptr;
364
- }
365
-
366
423
  try
367
424
  {
425
+ static std::optional<bool> is_property_present{};
426
+
427
+ if (!is_property_present.has_value())
428
+ {
429
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallDismissedTriggerDetails", L"TextReplyMessage");
430
+ }
431
+
432
+ if (!is_property_present.value())
433
+ {
434
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
435
+ return nullptr;
436
+ }
437
+
368
438
  return py::convert(self->obj.TextReplyMessage());
369
439
  }
370
440
  catch (...)
@@ -414,23 +484,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
414
484
  { }
415
485
  };
416
486
 
417
- static PyType_Slot _type_slots_PhoneIncomingCallDismissedTriggerDetails[] =
418
- {
487
+ static PyType_Slot _type_slots_PhoneIncomingCallDismissedTriggerDetails[] = {
419
488
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneIncomingCallDismissedTriggerDetails) },
420
489
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneIncomingCallDismissedTriggerDetails) },
421
490
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneIncomingCallDismissedTriggerDetails) },
422
491
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneIncomingCallDismissedTriggerDetails) },
423
- { },
492
+ { }
424
493
  };
425
494
 
426
- static PyType_Spec type_spec_PhoneIncomingCallDismissedTriggerDetails =
427
- {
495
+ static PyType_Spec type_spec_PhoneIncomingCallDismissedTriggerDetails = {
428
496
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneIncomingCallDismissedTriggerDetails",
429
497
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails),
430
498
  0,
431
499
  Py_TPFLAGS_DEFAULT,
432
- _type_slots_PhoneIncomingCallDismissedTriggerDetails
433
- };
500
+ _type_slots_PhoneIncomingCallDismissedTriggerDetails};
434
501
 
435
502
  // ----- PhoneIncomingCallNotificationTriggerDetails class --------------------
436
503
 
@@ -451,14 +518,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
451
518
 
452
519
  static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_CallId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
453
520
  {
454
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"CallId"))
455
- {
456
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
457
- return nullptr;
458
- }
459
-
460
521
  try
461
522
  {
523
+ static std::optional<bool> is_property_present{};
524
+
525
+ if (!is_property_present.has_value())
526
+ {
527
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"CallId");
528
+ }
529
+
530
+ if (!is_property_present.value())
531
+ {
532
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
533
+ return nullptr;
534
+ }
535
+
462
536
  return py::convert(self->obj.CallId());
463
537
  }
464
538
  catch (...)
@@ -470,14 +544,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
470
544
 
471
545
  static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
472
546
  {
473
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"LineId"))
474
- {
475
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
- return nullptr;
477
- }
478
-
479
547
  try
480
548
  {
549
+ static std::optional<bool> is_property_present{};
550
+
551
+ if (!is_property_present.has_value())
552
+ {
553
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneIncomingCallNotificationTriggerDetails", L"LineId");
554
+ }
555
+
556
+ if (!is_property_present.value())
557
+ {
558
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
559
+ return nullptr;
560
+ }
561
+
481
562
  return py::convert(self->obj.LineId());
482
563
  }
483
564
  catch (...)
@@ -523,23 +604,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
523
604
  { }
524
605
  };
525
606
 
526
- static PyType_Slot _type_slots_PhoneIncomingCallNotificationTriggerDetails[] =
527
- {
607
+ static PyType_Slot _type_slots_PhoneIncomingCallNotificationTriggerDetails[] = {
528
608
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneIncomingCallNotificationTriggerDetails) },
529
609
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneIncomingCallNotificationTriggerDetails) },
530
610
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneIncomingCallNotificationTriggerDetails) },
531
611
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneIncomingCallNotificationTriggerDetails) },
532
- { },
612
+ { }
533
613
  };
534
614
 
535
- static PyType_Spec type_spec_PhoneIncomingCallNotificationTriggerDetails =
536
- {
615
+ static PyType_Spec type_spec_PhoneIncomingCallNotificationTriggerDetails = {
537
616
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneIncomingCallNotificationTriggerDetails",
538
617
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails),
539
618
  0,
540
619
  Py_TPFLAGS_DEFAULT,
541
- _type_slots_PhoneIncomingCallNotificationTriggerDetails
542
- };
620
+ _type_slots_PhoneIncomingCallNotificationTriggerDetails};
543
621
 
544
622
  // ----- PhoneLineChangedTriggerDetails class --------------------
545
623
 
@@ -564,14 +642,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
564
642
 
565
643
  if (arg_count == 1)
566
644
  {
567
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"HasLinePropertyChanged", 1))
568
- {
569
- py::set_arg_count_version_error(1);
570
- return nullptr;
571
- }
572
-
573
645
  try
574
646
  {
647
+ static std::optional<bool> is_overload_present{};
648
+
649
+ if (!is_overload_present.has_value())
650
+ {
651
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"HasLinePropertyChanged", 1);
652
+ }
653
+
654
+ if (!is_overload_present.value())
655
+ {
656
+ py::set_arg_count_version_error(1);
657
+ return nullptr;
658
+ }
659
+
575
660
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineProperties>(args, 0);
576
661
 
577
662
  return py::convert(self->obj.HasLinePropertyChanged(param0));
@@ -591,14 +676,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
591
676
 
592
677
  static PyObject* PhoneLineChangedTriggerDetails_get_ChangeType(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
593
678
  {
594
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"ChangeType"))
595
- {
596
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
597
- return nullptr;
598
- }
599
-
600
679
  try
601
680
  {
681
+ static std::optional<bool> is_property_present{};
682
+
683
+ if (!is_property_present.has_value())
684
+ {
685
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"ChangeType");
686
+ }
687
+
688
+ if (!is_property_present.value())
689
+ {
690
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
691
+ return nullptr;
692
+ }
693
+
602
694
  return py::convert(self->obj.ChangeType());
603
695
  }
604
696
  catch (...)
@@ -610,14 +702,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
610
702
 
611
703
  static PyObject* PhoneLineChangedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
612
704
  {
613
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"LineId"))
614
- {
615
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
616
- return nullptr;
617
- }
618
-
619
705
  try
620
706
  {
707
+ static std::optional<bool> is_property_present{};
708
+
709
+ if (!is_property_present.has_value())
710
+ {
711
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneLineChangedTriggerDetails", L"LineId");
712
+ }
713
+
714
+ if (!is_property_present.value())
715
+ {
716
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
717
+ return nullptr;
718
+ }
719
+
621
720
  return py::convert(self->obj.LineId());
622
721
  }
623
722
  catch (...)
@@ -664,23 +763,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
664
763
  { }
665
764
  };
666
765
 
667
- static PyType_Slot _type_slots_PhoneLineChangedTriggerDetails[] =
668
- {
766
+ static PyType_Slot _type_slots_PhoneLineChangedTriggerDetails[] = {
669
767
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneLineChangedTriggerDetails) },
670
768
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneLineChangedTriggerDetails) },
671
769
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneLineChangedTriggerDetails) },
672
770
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneLineChangedTriggerDetails) },
673
- { },
771
+ { }
674
772
  };
675
773
 
676
- static PyType_Spec type_spec_PhoneLineChangedTriggerDetails =
677
- {
774
+ static PyType_Spec type_spec_PhoneLineChangedTriggerDetails = {
678
775
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneLineChangedTriggerDetails",
679
776
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails),
680
777
  0,
681
778
  Py_TPFLAGS_DEFAULT,
682
- _type_slots_PhoneLineChangedTriggerDetails
683
- };
779
+ _type_slots_PhoneLineChangedTriggerDetails};
684
780
 
685
781
  // ----- PhoneNewVoicemailMessageTriggerDetails class --------------------
686
782
 
@@ -701,14 +797,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
701
797
 
702
798
  static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
703
799
  {
704
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"LineId"))
705
- {
706
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
707
- return nullptr;
708
- }
709
-
710
800
  try
711
801
  {
802
+ static std::optional<bool> is_property_present{};
803
+
804
+ if (!is_property_present.has_value())
805
+ {
806
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"LineId");
807
+ }
808
+
809
+ if (!is_property_present.value())
810
+ {
811
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
812
+ return nullptr;
813
+ }
814
+
712
815
  return py::convert(self->obj.LineId());
713
816
  }
714
817
  catch (...)
@@ -720,14 +823,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
720
823
 
721
824
  static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_OperatorMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
722
825
  {
723
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"OperatorMessage"))
724
- {
725
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
726
- return nullptr;
727
- }
728
-
729
826
  try
730
827
  {
828
+ static std::optional<bool> is_property_present{};
829
+
830
+ if (!is_property_present.has_value())
831
+ {
832
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"OperatorMessage");
833
+ }
834
+
835
+ if (!is_property_present.value())
836
+ {
837
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
838
+ return nullptr;
839
+ }
840
+
731
841
  return py::convert(self->obj.OperatorMessage());
732
842
  }
733
843
  catch (...)
@@ -739,14 +849,21 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
739
849
 
740
850
  static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_VoicemailCount(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
741
851
  {
742
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"VoicemailCount"))
743
- {
744
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
745
- return nullptr;
746
- }
747
-
748
852
  try
749
853
  {
854
+ static std::optional<bool> is_property_present{};
855
+
856
+ if (!is_property_present.has_value())
857
+ {
858
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Background.PhoneNewVoicemailMessageTriggerDetails", L"VoicemailCount");
859
+ }
860
+
861
+ if (!is_property_present.value())
862
+ {
863
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
864
+ return nullptr;
865
+ }
866
+
750
867
  return py::convert(self->obj.VoicemailCount());
751
868
  }
752
869
  catch (...)
@@ -793,39 +910,35 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Background
793
910
  { }
794
911
  };
795
912
 
796
- static PyType_Slot _type_slots_PhoneNewVoicemailMessageTriggerDetails[] =
797
- {
913
+ static PyType_Slot _type_slots_PhoneNewVoicemailMessageTriggerDetails[] = {
798
914
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneNewVoicemailMessageTriggerDetails) },
799
915
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneNewVoicemailMessageTriggerDetails) },
800
916
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneNewVoicemailMessageTriggerDetails) },
801
917
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneNewVoicemailMessageTriggerDetails) },
802
- { },
918
+ { }
803
919
  };
804
920
 
805
- static PyType_Spec type_spec_PhoneNewVoicemailMessageTriggerDetails =
806
- {
921
+ static PyType_Spec type_spec_PhoneNewVoicemailMessageTriggerDetails = {
807
922
  "winrt._winrt_windows_applicationmodel_calls_background.PhoneNewVoicemailMessageTriggerDetails",
808
923
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails),
809
924
  0,
810
925
  Py_TPFLAGS_DEFAULT,
811
- _type_slots_PhoneNewVoicemailMessageTriggerDetails
812
- };
926
+ _type_slots_PhoneNewVoicemailMessageTriggerDetails};
813
927
 
814
928
  // ----- Windows.ApplicationModel.Calls.Background Initialization --------------------
815
- PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Calls::Background");
816
-
817
929
 
818
- static PyModuleDef module_def
819
- = {PyModuleDef_HEAD_INIT,
820
- "_winrt_windows_applicationmodel_calls_background",
821
- module_doc,
822
- 0,
823
- nullptr,
824
- nullptr,
825
- nullptr,
826
- nullptr,
827
- nullptr};
930
+ PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Calls.Background");
828
931
 
932
+ static PyModuleDef module_def = {
933
+ PyModuleDef_HEAD_INIT,
934
+ "_winrt_windows_applicationmodel_calls_background",
935
+ module_doc,
936
+ 0,
937
+ nullptr,
938
+ nullptr,
939
+ nullptr,
940
+ nullptr,
941
+ nullptr};
829
942
  } // py::cpp::Windows::ApplicationModel::Calls::Background
830
943
 
831
944
  PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_background(void) noexcept
@@ -857,32 +970,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_background(void) noe
857
970
  return nullptr;
858
971
  }
859
972
 
860
- if (py::register_python_type(module.get(), &type_spec_PhoneCallBlockedTriggerDetails, object_bases.get(), nullptr) == -1)
973
+ py::pytype_handle PhoneCallBlockedTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneCallBlockedTriggerDetails, object_bases.get(), nullptr)};
974
+ if (!PhoneCallBlockedTriggerDetails_type)
861
975
  {
862
976
  return nullptr;
863
977
  }
864
978
 
865
- if (py::register_python_type(module.get(), &type_spec_PhoneCallOriginDataRequestTriggerDetails, object_bases.get(), nullptr) == -1)
979
+ py::pytype_handle PhoneCallOriginDataRequestTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneCallOriginDataRequestTriggerDetails, object_bases.get(), nullptr)};
980
+ if (!PhoneCallOriginDataRequestTriggerDetails_type)
866
981
  {
867
982
  return nullptr;
868
983
  }
869
984
 
870
- if (py::register_python_type(module.get(), &type_spec_PhoneIncomingCallDismissedTriggerDetails, object_bases.get(), nullptr) == -1)
985
+ py::pytype_handle PhoneIncomingCallDismissedTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneIncomingCallDismissedTriggerDetails, object_bases.get(), nullptr)};
986
+ if (!PhoneIncomingCallDismissedTriggerDetails_type)
871
987
  {
872
988
  return nullptr;
873
989
  }
874
990
 
875
- if (py::register_python_type(module.get(), &type_spec_PhoneIncomingCallNotificationTriggerDetails, object_bases.get(), nullptr) == -1)
991
+ py::pytype_handle PhoneIncomingCallNotificationTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneIncomingCallNotificationTriggerDetails, object_bases.get(), nullptr)};
992
+ if (!PhoneIncomingCallNotificationTriggerDetails_type)
876
993
  {
877
994
  return nullptr;
878
995
  }
879
996
 
880
- if (py::register_python_type(module.get(), &type_spec_PhoneLineChangedTriggerDetails, object_bases.get(), nullptr) == -1)
997
+ py::pytype_handle PhoneLineChangedTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneLineChangedTriggerDetails, object_bases.get(), nullptr)};
998
+ if (!PhoneLineChangedTriggerDetails_type)
881
999
  {
882
1000
  return nullptr;
883
1001
  }
884
1002
 
885
- if (py::register_python_type(module.get(), &type_spec_PhoneNewVoicemailMessageTriggerDetails, object_bases.get(), nullptr) == -1)
1003
+ py::pytype_handle PhoneNewVoicemailMessageTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PhoneNewVoicemailMessageTriggerDetails, object_bases.get(), nullptr)};
1004
+ if (!PhoneNewVoicemailMessageTriggerDetails_type)
886
1005
  {
887
1006
  return nullptr;
888
1007
  }
@@ -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.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.2.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,7 +9,7 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
12
+ import winrt.windows.foundation as windows_foundation
13
13
 
14
14
  from winrt.windows.applicationmodel.calls.background import PhoneCallBlockedReason, PhoneIncomingCallDismissedReason, PhoneLineChangeKind, PhoneLineProperties, PhoneTriggerType
15
15
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -36,7 +36,7 @@ class PhoneLineChangeKind(enum.IntEnum):
36
36
  PROPERTIES_CHANGED = 2
37
37
 
38
38
  class PhoneLineProperties(enum.IntFlag):
39
- NONE = 0
39
+ NONE = 0x0
40
40
  BRANDING_OPTIONS = 0x1
41
41
  CAN_DIAL = 0x2
42
42
  CELLULAR_DETAILS = 0x4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Calls.Background
3
- Version: 2.0.1
3
+ Version: 2.2.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.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1