winrt-Windows.Devices.Display 2.1.0__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 (20) hide show
  1. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/PKG-INFO +5 -5
  2. winrt_windows_devices_display-2.2.0/all-requirements.txt +4 -0
  3. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/py.Windows.Devices.Display.cpp +195 -26
  4. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_devices_display-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt/_winrt_windows_devices_display.pyi +1 -1
  8. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt/windows/devices/display/__init__.py +1 -1
  9. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt_Windows.Devices.Display.egg-info/PKG-INFO +5 -5
  10. winrt_windows_devices_display-2.2.0/winrt_Windows.Devices.Display.egg-info/requires.txt +5 -0
  11. winrt_windows_devices_display-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_devices_display-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_devices_display-2.1.0/winrt_Windows.Devices.Display.egg-info/requires.txt +0 -5
  14. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/README.md +0 -0
  15. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/setup.py +0 -0
  17. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt/windows/devices/display/py.typed +0 -0
  18. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt_Windows.Devices.Display.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt_Windows.Devices.Display.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_devices_display-2.1.0 → winrt_windows_devices_display-2.2.0}/winrt_Windows.Devices.Display.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Display
3
- Version: 2.1.0
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,12 +10,12 @@ 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.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.Graphics[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Devices.Display.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Devices::Display
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromIdAsync", 1))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromIdAsync", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(1);
35
42
  return nullptr;
@@ -60,7 +67,14 @@ namespace py::cpp::Windows::Devices::Display
60
67
  {
61
68
  try
62
69
  {
63
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromInterfaceIdAsync", 1))
70
+ static std::optional<bool> is_overload_present{};
71
+
72
+ if (!is_overload_present.has_value())
73
+ {
74
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"FromInterfaceIdAsync", 1);
75
+ }
76
+
77
+ if (!is_overload_present.value())
64
78
  {
65
79
  py::set_arg_count_version_error(1);
66
80
  return nullptr;
@@ -91,7 +105,14 @@ namespace py::cpp::Windows::Devices::Display
91
105
  {
92
106
  try
93
107
  {
94
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDescriptor", 1))
108
+ static std::optional<bool> is_overload_present{};
109
+
110
+ if (!is_overload_present.has_value())
111
+ {
112
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDescriptor", 1);
113
+ }
114
+
115
+ if (!is_overload_present.value())
95
116
  {
96
117
  py::set_arg_count_version_error(1);
97
118
  return nullptr;
@@ -122,7 +143,14 @@ namespace py::cpp::Windows::Devices::Display
122
143
  {
123
144
  try
124
145
  {
125
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDeviceSelector", 0))
146
+ static std::optional<bool> is_overload_present{};
147
+
148
+ if (!is_overload_present.has_value())
149
+ {
150
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Display.DisplayMonitor", L"GetDeviceSelector", 0);
151
+ }
152
+
153
+ if (!is_overload_present.value())
126
154
  {
127
155
  py::set_arg_count_version_error(0);
128
156
  return nullptr;
@@ -147,7 +175,14 @@ namespace py::cpp::Windows::Devices::Display
147
175
  {
148
176
  try
149
177
  {
150
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"BluePrimary"))
178
+ static std::optional<bool> is_property_present{};
179
+
180
+ if (!is_property_present.has_value())
181
+ {
182
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"BluePrimary");
183
+ }
184
+
185
+ if (!is_property_present.value())
151
186
  {
152
187
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
153
188
  return nullptr;
@@ -166,7 +201,14 @@ namespace py::cpp::Windows::Devices::Display
166
201
  {
167
202
  try
168
203
  {
169
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"ConnectionKind"))
204
+ static std::optional<bool> is_property_present{};
205
+
206
+ if (!is_property_present.has_value())
207
+ {
208
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"ConnectionKind");
209
+ }
210
+
211
+ if (!is_property_present.value())
170
212
  {
171
213
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
172
214
  return nullptr;
@@ -185,7 +227,14 @@ namespace py::cpp::Windows::Devices::Display
185
227
  {
186
228
  try
187
229
  {
188
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DeviceId"))
230
+ static std::optional<bool> is_property_present{};
231
+
232
+ if (!is_property_present.has_value())
233
+ {
234
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DeviceId");
235
+ }
236
+
237
+ if (!is_property_present.value())
189
238
  {
190
239
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
191
240
  return nullptr;
@@ -204,7 +253,14 @@ namespace py::cpp::Windows::Devices::Display
204
253
  {
205
254
  try
206
255
  {
207
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterDeviceId"))
256
+ static std::optional<bool> is_property_present{};
257
+
258
+ if (!is_property_present.has_value())
259
+ {
260
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterDeviceId");
261
+ }
262
+
263
+ if (!is_property_present.value())
208
264
  {
209
265
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
210
266
  return nullptr;
@@ -223,7 +279,14 @@ namespace py::cpp::Windows::Devices::Display
223
279
  {
224
280
  try
225
281
  {
226
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterId"))
282
+ static std::optional<bool> is_property_present{};
283
+
284
+ if (!is_property_present.has_value())
285
+ {
286
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterId");
287
+ }
288
+
289
+ if (!is_property_present.value())
227
290
  {
228
291
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
229
292
  return nullptr;
@@ -242,7 +305,14 @@ namespace py::cpp::Windows::Devices::Display
242
305
  {
243
306
  try
244
307
  {
245
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterTargetId"))
308
+ static std::optional<bool> is_property_present{};
309
+
310
+ if (!is_property_present.has_value())
311
+ {
312
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayAdapterTargetId");
313
+ }
314
+
315
+ if (!is_property_present.value())
246
316
  {
247
317
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
248
318
  return nullptr;
@@ -261,7 +331,14 @@ namespace py::cpp::Windows::Devices::Display
261
331
  {
262
332
  try
263
333
  {
264
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayName"))
334
+ static std::optional<bool> is_property_present{};
335
+
336
+ if (!is_property_present.has_value())
337
+ {
338
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"DisplayName");
339
+ }
340
+
341
+ if (!is_property_present.value())
265
342
  {
266
343
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
267
344
  return nullptr;
@@ -280,7 +357,14 @@ namespace py::cpp::Windows::Devices::Display
280
357
  {
281
358
  try
282
359
  {
283
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"GreenPrimary"))
360
+ static std::optional<bool> is_property_present{};
361
+
362
+ if (!is_property_present.has_value())
363
+ {
364
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"GreenPrimary");
365
+ }
366
+
367
+ if (!is_property_present.value())
284
368
  {
285
369
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
286
370
  return nullptr;
@@ -299,7 +383,14 @@ namespace py::cpp::Windows::Devices::Display
299
383
  {
300
384
  try
301
385
  {
302
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxAverageFullFrameLuminanceInNits"))
386
+ static std::optional<bool> is_property_present{};
387
+
388
+ if (!is_property_present.has_value())
389
+ {
390
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxAverageFullFrameLuminanceInNits");
391
+ }
392
+
393
+ if (!is_property_present.value())
303
394
  {
304
395
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
305
396
  return nullptr;
@@ -318,7 +409,14 @@ namespace py::cpp::Windows::Devices::Display
318
409
  {
319
410
  try
320
411
  {
321
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxLuminanceInNits"))
412
+ static std::optional<bool> is_property_present{};
413
+
414
+ if (!is_property_present.has_value())
415
+ {
416
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MaxLuminanceInNits");
417
+ }
418
+
419
+ if (!is_property_present.value())
322
420
  {
323
421
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
324
422
  return nullptr;
@@ -337,7 +435,14 @@ namespace py::cpp::Windows::Devices::Display
337
435
  {
338
436
  try
339
437
  {
340
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MinLuminanceInNits"))
438
+ static std::optional<bool> is_property_present{};
439
+
440
+ if (!is_property_present.has_value())
441
+ {
442
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"MinLuminanceInNits");
443
+ }
444
+
445
+ if (!is_property_present.value())
341
446
  {
342
447
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
343
448
  return nullptr;
@@ -356,7 +461,14 @@ namespace py::cpp::Windows::Devices::Display
356
461
  {
357
462
  try
358
463
  {
359
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"NativeResolutionInRawPixels"))
464
+ static std::optional<bool> is_property_present{};
465
+
466
+ if (!is_property_present.has_value())
467
+ {
468
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"NativeResolutionInRawPixels");
469
+ }
470
+
471
+ if (!is_property_present.value())
360
472
  {
361
473
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
362
474
  return nullptr;
@@ -375,7 +487,14 @@ namespace py::cpp::Windows::Devices::Display
375
487
  {
376
488
  try
377
489
  {
378
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalConnector"))
490
+ static std::optional<bool> is_property_present{};
491
+
492
+ if (!is_property_present.has_value())
493
+ {
494
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalConnector");
495
+ }
496
+
497
+ if (!is_property_present.value())
379
498
  {
380
499
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
381
500
  return nullptr;
@@ -394,7 +513,14 @@ namespace py::cpp::Windows::Devices::Display
394
513
  {
395
514
  try
396
515
  {
397
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalSizeInInches"))
516
+ static std::optional<bool> is_property_present{};
517
+
518
+ if (!is_property_present.has_value())
519
+ {
520
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"PhysicalSizeInInches");
521
+ }
522
+
523
+ if (!is_property_present.value())
398
524
  {
399
525
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
400
526
  return nullptr;
@@ -413,7 +539,14 @@ namespace py::cpp::Windows::Devices::Display
413
539
  {
414
540
  try
415
541
  {
416
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiX"))
542
+ static std::optional<bool> is_property_present{};
543
+
544
+ if (!is_property_present.has_value())
545
+ {
546
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiX");
547
+ }
548
+
549
+ if (!is_property_present.value())
417
550
  {
418
551
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
419
552
  return nullptr;
@@ -432,7 +565,14 @@ namespace py::cpp::Windows::Devices::Display
432
565
  {
433
566
  try
434
567
  {
435
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiY"))
568
+ static std::optional<bool> is_property_present{};
569
+
570
+ if (!is_property_present.has_value())
571
+ {
572
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RawDpiY");
573
+ }
574
+
575
+ if (!is_property_present.value())
436
576
  {
437
577
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
438
578
  return nullptr;
@@ -451,7 +591,14 @@ namespace py::cpp::Windows::Devices::Display
451
591
  {
452
592
  try
453
593
  {
454
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RedPrimary"))
594
+ static std::optional<bool> is_property_present{};
595
+
596
+ if (!is_property_present.has_value())
597
+ {
598
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"RedPrimary");
599
+ }
600
+
601
+ if (!is_property_present.value())
455
602
  {
456
603
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
457
604
  return nullptr;
@@ -470,7 +617,14 @@ namespace py::cpp::Windows::Devices::Display
470
617
  {
471
618
  try
472
619
  {
473
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"UsageKind"))
620
+ static std::optional<bool> is_property_present{};
621
+
622
+ if (!is_property_present.has_value())
623
+ {
624
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"UsageKind");
625
+ }
626
+
627
+ if (!is_property_present.value())
474
628
  {
475
629
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
630
  return nullptr;
@@ -489,7 +643,14 @@ namespace py::cpp::Windows::Devices::Display
489
643
  {
490
644
  try
491
645
  {
492
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"WhitePoint"))
646
+ static std::optional<bool> is_property_present{};
647
+
648
+ if (!is_property_present.has_value())
649
+ {
650
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"WhitePoint");
651
+ }
652
+
653
+ if (!is_property_present.value())
493
654
  {
494
655
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
495
656
  return nullptr;
@@ -508,7 +669,14 @@ namespace py::cpp::Windows::Devices::Display
508
669
  {
509
670
  try
510
671
  {
511
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"IsDolbyVisionSupportedInHdrMode"))
672
+ static std::optional<bool> is_property_present{};
673
+
674
+ if (!is_property_present.has_value())
675
+ {
676
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Display.DisplayMonitor", L"IsDolbyVisionSupportedInHdrMode");
677
+ }
678
+
679
+ if (!is_property_present.value())
512
680
  {
513
681
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
514
682
  return nullptr;
@@ -672,7 +840,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_display(void) noexcept
672
840
  return nullptr;
673
841
  }
674
842
 
675
- if (py::register_python_type(module.get(), &type_spec_DisplayMonitor, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DisplayMonitor_Static.get())) == -1)
843
+ py::pytype_handle DisplayMonitor_type{py::register_python_type(module.get(), &type_spec_DisplayMonitor, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DisplayMonitor_Static.get()))};
844
+ if (!DisplayMonitor_type)
676
845
  {
677
846
  return nullptr;
678
847
  }
@@ -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.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.0
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.1.0
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
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Display
3
- Version: 2.1.0
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,12 +10,12 @@ 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.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Graphics[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Graphics[all]==2.2.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Graphics[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Graphics[all]==2.1.0