winrt-Windows.ApplicationModel.Preview.Notes 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_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/PKG-INFO +6 -6
  2. winrt_windows_applicationmodel_preview_notes-2.2.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/py.Windows.ApplicationModel.Preview.Notes.cpp +210 -31
  4. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_preview_notes-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt/_winrt_windows_applicationmodel_preview_notes.pyi +1 -1
  8. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt/windows/applicationmodel/preview/notes/__init__.py +1 -1
  9. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/PKG-INFO +6 -6
  10. winrt_windows_applicationmodel_preview_notes-2.2.0/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +6 -0
  11. winrt_windows_applicationmodel_preview_notes-2.1.0/all-requirements.txt +0 -5
  12. winrt_windows_applicationmodel_preview_notes-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_preview_notes-2.1.0/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/requires.txt +0 -6
  14. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/README.md +0 -0
  15. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt/windows/applicationmodel/preview/notes/py.typed +0 -0
  18. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_preview_notes-2.1.0 → winrt_windows_applicationmodel_preview_notes-2.2.0}/winrt_Windows.ApplicationModel.Preview.Notes.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Preview.Notes
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,13 +10,13 @@ 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.Imaging[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
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.Imaging[all]==2.2.0
5
+ winrt-Windows.Storage.Streams[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.ApplicationModel.Preview.Notes.h"
4
4
 
@@ -25,7 +25,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
25
25
  {
26
26
  try
27
27
  {
28
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotePlacementChangedPreviewEventArgs", L"ViewId"))
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.Preview.Notes.NotePlacementChangedPreviewEventArgs", L"ViewId");
33
+ }
34
+
35
+ if (!is_property_present.value())
29
36
  {
30
37
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
31
38
  return nullptr;
@@ -111,7 +118,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
111
118
  {
112
119
  try
113
120
  {
114
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"IsVisible"))
121
+ static std::optional<bool> is_property_present{};
122
+
123
+ if (!is_property_present.has_value())
124
+ {
125
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"IsVisible");
126
+ }
127
+
128
+ if (!is_property_present.value())
115
129
  {
116
130
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
117
131
  return nullptr;
@@ -130,7 +144,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
130
144
  {
131
145
  try
132
146
  {
133
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"ViewId"))
147
+ static std::optional<bool> is_property_present{};
148
+
149
+ if (!is_property_present.has_value())
150
+ {
151
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NoteVisibilityChangedPreviewEventArgs", L"ViewId");
152
+ }
153
+
154
+ if (!is_property_present.value())
134
155
  {
135
156
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
136
157
  return nullptr;
@@ -221,7 +242,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
221
242
  {
222
243
  try
223
244
  {
224
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetForCurrentApp", 0))
245
+ static std::optional<bool> is_overload_present{};
246
+
247
+ if (!is_overload_present.has_value())
248
+ {
249
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetForCurrentApp", 0);
250
+ }
251
+
252
+ if (!is_overload_present.value())
225
253
  {
226
254
  py::set_arg_count_version_error(0);
227
255
  return nullptr;
@@ -250,7 +278,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
250
278
  {
251
279
  try
252
280
  {
253
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetNotePlacement", 1))
281
+ static std::optional<bool> is_overload_present{};
282
+
283
+ if (!is_overload_present.has_value())
284
+ {
285
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"GetNotePlacement", 1);
286
+ }
287
+
288
+ if (!is_overload_present.value())
254
289
  {
255
290
  py::set_arg_count_version_error(1);
256
291
  return nullptr;
@@ -281,7 +316,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
281
316
  {
282
317
  try
283
318
  {
284
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"HideNote", 1))
319
+ static std::optional<bool> is_overload_present{};
320
+
321
+ if (!is_overload_present.has_value())
322
+ {
323
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"HideNote", 1);
324
+ }
325
+
326
+ if (!is_overload_present.value())
285
327
  {
286
328
  py::set_arg_count_version_error(1);
287
329
  return nullptr;
@@ -313,7 +355,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
313
355
  {
314
356
  try
315
357
  {
316
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToNextView", 0))
358
+ static std::optional<bool> is_overload_present{};
359
+
360
+ if (!is_overload_present.has_value())
361
+ {
362
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToNextView", 0);
363
+ }
364
+
365
+ if (!is_overload_present.value())
317
366
  {
318
367
  py::set_arg_count_version_error(0);
319
368
  return nullptr;
@@ -343,7 +392,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
343
392
  {
344
393
  try
345
394
  {
346
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToPreviousView", 0))
395
+ static std::optional<bool> is_overload_present{};
396
+
397
+ if (!is_overload_present.has_value())
398
+ {
399
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetFocusToPreviousView", 0);
400
+ }
401
+
402
+ if (!is_overload_present.value())
347
403
  {
348
404
  py::set_arg_count_version_error(0);
349
405
  return nullptr;
@@ -373,7 +429,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
373
429
  {
374
430
  try
375
431
  {
376
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetNotesThumbnailAsync", 1))
432
+ static std::optional<bool> is_overload_present{};
433
+
434
+ if (!is_overload_present.has_value())
435
+ {
436
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetNotesThumbnailAsync", 1);
437
+ }
438
+
439
+ if (!is_overload_present.value())
377
440
  {
378
441
  py::set_arg_count_version_error(1);
379
442
  return nullptr;
@@ -404,7 +467,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
404
467
  {
405
468
  try
406
469
  {
407
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetThumbnailImageForTaskSwitcherAsync", 1))
470
+ static std::optional<bool> is_overload_present{};
471
+
472
+ if (!is_overload_present.has_value())
473
+ {
474
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SetThumbnailImageForTaskSwitcherAsync", 1);
475
+ }
476
+
477
+ if (!is_overload_present.value())
408
478
  {
409
479
  py::set_arg_count_version_error(1);
410
480
  return nullptr;
@@ -435,7 +505,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
435
505
  {
436
506
  try
437
507
  {
438
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNote", 1))
508
+ static std::optional<bool> is_overload_present{};
509
+
510
+ if (!is_overload_present.has_value())
511
+ {
512
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNote", 1);
513
+ }
514
+
515
+ if (!is_overload_present.value())
439
516
  {
440
517
  py::set_arg_count_version_error(1);
441
518
  return nullptr;
@@ -467,7 +544,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
467
544
  {
468
545
  try
469
546
  {
470
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 2))
547
+ static std::optional<bool> is_overload_present{};
548
+
549
+ if (!is_overload_present.has_value())
550
+ {
551
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 2);
552
+ }
553
+
554
+ if (!is_overload_present.value())
471
555
  {
472
556
  py::set_arg_count_version_error(2);
473
557
  return nullptr;
@@ -489,7 +573,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
489
573
  {
490
574
  try
491
575
  {
492
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 3))
576
+ static std::optional<bool> is_overload_present{};
577
+
578
+ if (!is_overload_present.has_value())
579
+ {
580
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteRelativeTo", 3);
581
+ }
582
+
583
+ if (!is_overload_present.value())
493
584
  {
494
585
  py::set_arg_count_version_error(3);
495
586
  return nullptr;
@@ -523,7 +614,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
523
614
  {
524
615
  try
525
616
  {
526
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 2))
617
+ static std::optional<bool> is_overload_present{};
618
+
619
+ if (!is_overload_present.has_value())
620
+ {
621
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 2);
622
+ }
623
+
624
+ if (!is_overload_present.value())
527
625
  {
528
626
  py::set_arg_count_version_error(2);
529
627
  return nullptr;
@@ -545,7 +643,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
545
643
  {
546
644
  try
547
645
  {
548
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 3))
646
+ static std::optional<bool> is_overload_present{};
647
+
648
+ if (!is_overload_present.has_value())
649
+ {
650
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"ShowNoteWithPlacement", 3);
651
+ }
652
+
653
+ if (!is_overload_present.value())
549
654
  {
550
655
  py::set_arg_count_version_error(3);
551
656
  return nullptr;
@@ -579,7 +684,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
579
684
  {
580
685
  try
581
686
  {
582
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"TrySetNoteSize", 2))
687
+ static std::optional<bool> is_overload_present{};
688
+
689
+ if (!is_overload_present.has_value())
690
+ {
691
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"TrySetNoteSize", 2);
692
+ }
693
+
694
+ if (!is_overload_present.value())
583
695
  {
584
696
  py::set_arg_count_version_error(2);
585
697
  return nullptr;
@@ -607,7 +719,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
607
719
  {
608
720
  try
609
721
  {
610
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"IsScreenLocked"))
722
+ static std::optional<bool> is_property_present{};
723
+
724
+ if (!is_property_present.has_value())
725
+ {
726
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"IsScreenLocked");
727
+ }
728
+
729
+ if (!is_property_present.value())
611
730
  {
612
731
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
613
732
  return nullptr;
@@ -626,7 +745,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
626
745
  {
627
746
  try
628
747
  {
629
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
748
+ static std::optional<bool> is_event_present{};
749
+
750
+ if (!is_event_present.has_value())
751
+ {
752
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged");
753
+ }
754
+
755
+ if (!is_event_present.value())
630
756
  {
631
757
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
632
758
  return nullptr;
@@ -647,7 +773,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
647
773
  {
648
774
  try
649
775
  {
650
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged"))
776
+ static std::optional<bool> is_event_present{};
777
+
778
+ if (!is_event_present.has_value())
779
+ {
780
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NotePlacementChanged");
781
+ }
782
+
783
+ if (!is_event_present.value())
651
784
  {
652
785
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
653
786
  return nullptr;
@@ -669,7 +802,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
669
802
  {
670
803
  try
671
804
  {
672
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
805
+ static std::optional<bool> is_event_present{};
806
+
807
+ if (!is_event_present.has_value())
808
+ {
809
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged");
810
+ }
811
+
812
+ if (!is_event_present.value())
673
813
  {
674
814
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
675
815
  return nullptr;
@@ -690,7 +830,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
690
830
  {
691
831
  try
692
832
  {
693
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged"))
833
+ static std::optional<bool> is_event_present{};
834
+
835
+ if (!is_event_present.has_value())
836
+ {
837
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"NoteVisibilityChanged");
838
+ }
839
+
840
+ if (!is_event_present.value())
694
841
  {
695
842
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
696
843
  return nullptr;
@@ -712,7 +859,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
712
859
  {
713
860
  try
714
861
  {
715
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
862
+ static std::optional<bool> is_event_present{};
863
+
864
+ if (!is_event_present.has_value())
865
+ {
866
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged");
867
+ }
868
+
869
+ if (!is_event_present.value())
716
870
  {
717
871
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
718
872
  return nullptr;
@@ -733,7 +887,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
733
887
  {
734
888
  try
735
889
  {
736
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged"))
890
+ static std::optional<bool> is_event_present{};
891
+
892
+ if (!is_event_present.has_value())
893
+ {
894
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreview", L"SystemLockStateChanged");
895
+ }
896
+
897
+ if (!is_event_present.value())
737
898
  {
738
899
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
739
900
  return nullptr;
@@ -858,7 +1019,7 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
858
1019
  {
859
1020
  try
860
1021
  {
861
- winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions instance{ };
1022
+ winrt::Windows::ApplicationModel::Preview::Notes::NotesWindowManagerPreviewShowNoteOptions instance{};
862
1023
  return py::wrap(instance, type);
863
1024
  }
864
1025
  catch (...)
@@ -886,7 +1047,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
886
1047
  {
887
1048
  try
888
1049
  {
889
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
1050
+ static std::optional<bool> is_property_present{};
1051
+
1052
+ if (!is_property_present.has_value())
1053
+ {
1054
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus");
1055
+ }
1056
+
1057
+ if (!is_property_present.value())
890
1058
  {
891
1059
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
892
1060
  return nullptr;
@@ -911,7 +1079,14 @@ namespace py::cpp::Windows::ApplicationModel::Preview::Notes
911
1079
 
912
1080
  try
913
1081
  {
914
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus"))
1082
+ static std::optional<bool> is_property_present{};
1083
+
1084
+ if (!is_property_present.has_value())
1085
+ {
1086
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Preview.Notes.NotesWindowManagerPreviewShowNoteOptions", L"ShowWithFocus");
1087
+ }
1088
+
1089
+ if (!is_property_present.value())
915
1090
  {
916
1091
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
917
1092
  return -1;
@@ -1024,12 +1199,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexce
1024
1199
  return nullptr;
1025
1200
  }
1026
1201
 
1027
- if (py::register_python_type(module.get(), &type_spec_NotePlacementChangedPreviewEventArgs, object_bases.get(), nullptr) == -1)
1202
+ py::pytype_handle NotePlacementChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NotePlacementChangedPreviewEventArgs, object_bases.get(), nullptr)};
1203
+ if (!NotePlacementChangedPreviewEventArgs_type)
1028
1204
  {
1029
1205
  return nullptr;
1030
1206
  }
1031
1207
 
1032
- if (py::register_python_type(module.get(), &type_spec_NoteVisibilityChangedPreviewEventArgs, object_bases.get(), nullptr) == -1)
1208
+ py::pytype_handle NoteVisibilityChangedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_NoteVisibilityChangedPreviewEventArgs, object_bases.get(), nullptr)};
1209
+ if (!NoteVisibilityChangedPreviewEventArgs_type)
1033
1210
  {
1034
1211
  return nullptr;
1035
1212
  }
@@ -1040,12 +1217,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_preview_notes(void) noexce
1040
1217
  return nullptr;
1041
1218
  }
1042
1219
 
1043
- if (py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_NotesWindowManagerPreview_Static.get())) == -1)
1220
+ py::pytype_handle NotesWindowManagerPreview_type{py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_NotesWindowManagerPreview_Static.get()))};
1221
+ if (!NotesWindowManagerPreview_type)
1044
1222
  {
1045
1223
  return nullptr;
1046
1224
  }
1047
1225
 
1048
- if (py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreviewShowNoteOptions, object_bases.get(), nullptr) == -1)
1226
+ py::pytype_handle NotesWindowManagerPreviewShowNoteOptions_type{py::register_python_type(module.get(), &type_spec_NotesWindowManagerPreviewShowNoteOptions, object_bases.get(), nullptr)};
1227
+ if (!NotesWindowManagerPreviewShowNoteOptions_type)
1049
1228
  {
1050
1229
  return nullptr;
1051
1230
  }
@@ -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 winrt.system
4
4
  from winrt import _winrt_windows_applicationmodel_preview_notes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Preview.Notes
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,13 +10,13 @@ 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.Imaging[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Graphics.Imaging[all]==2.2.0
6
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,5 +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.Imaging[all]==2.1.0
5
- winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Graphics.Imaging[all]==2.1.0
6
- winrt-Windows.Storage.Streams[all]==2.1.0