winrt-Windows.UI.Xaml.Navigation 2.1.0__tar.gz → 2.3.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_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/PKG-INFO +8 -8
  2. winrt_windows_ui_xaml_navigation-2.3.0/all-requirements.txt +7 -0
  3. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/py.Windows.UI.Xaml.Navigation.cpp +277 -41
  4. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_ui_xaml_navigation-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt/_winrt_windows_ui_xaml_navigation.pyi +1 -1
  8. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt/windows/ui/xaml/navigation/__init__.py +1 -1
  9. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt_Windows.UI.Xaml.Navigation.egg-info/PKG-INFO +8 -8
  10. winrt_windows_ui_xaml_navigation-2.3.0/winrt_Windows.UI.Xaml.Navigation.egg-info/requires.txt +8 -0
  11. winrt_windows_ui_xaml_navigation-2.1.0/all-requirements.txt +0 -7
  12. winrt_windows_ui_xaml_navigation-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_xaml_navigation-2.1.0/winrt_Windows.UI.Xaml.Navigation.egg-info/requires.txt +0 -8
  14. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/README.md +0 -0
  15. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/setup.py +0 -0
  17. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt/windows/ui/xaml/navigation/py.typed +0 -0
  18. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt_Windows.UI.Xaml.Navigation.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt_Windows.UI.Xaml.Navigation.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_xaml_navigation-2.1.0 → winrt_windows_ui_xaml_navigation-2.3.0}/winrt_Windows.UI.Xaml.Navigation.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Navigation
3
- Version: 2.1.0
3
+ Version: 2.3.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,15 +10,15 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.Core[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.Core[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.3.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Foundation[all]==2.3.0
4
+ winrt-Windows.UI.Core[all]==2.3.0
5
+ winrt-Windows.UI.Xaml[all]==2.3.0
6
+ winrt-Windows.UI.Xaml.Interop[all]==2.3.0
7
+ winrt-Windows.UI.Xaml.Media.Animation[all]==2.3.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.3.0
2
2
 
3
3
  #include "py.Windows.UI.Xaml.Navigation.h"
4
4
 
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
19
19
  {
20
20
  try
21
21
  {
22
- winrt::Windows::UI::Xaml::Navigation::FrameNavigationOptions instance{ };
22
+ winrt::Windows::UI::Xaml::Navigation::FrameNavigationOptions instance{};
23
23
  return py::wrap(instance, type);
24
24
  }
25
25
  catch (...)
@@ -47,7 +47,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
47
47
  {
48
48
  try
49
49
  {
50
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"TransitionInfoOverride"))
50
+ static std::optional<bool> is_property_present{};
51
+
52
+ if (!is_property_present.has_value())
53
+ {
54
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"TransitionInfoOverride");
55
+ }
56
+
57
+ if (!is_property_present.value())
51
58
  {
52
59
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
53
60
  return nullptr;
@@ -72,7 +79,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
72
79
 
73
80
  try
74
81
  {
75
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"TransitionInfoOverride"))
82
+ static std::optional<bool> is_property_present{};
83
+
84
+ if (!is_property_present.has_value())
85
+ {
86
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"TransitionInfoOverride");
87
+ }
88
+
89
+ if (!is_property_present.value())
76
90
  {
77
91
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
78
92
  return -1;
@@ -94,7 +108,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
94
108
  {
95
109
  try
96
110
  {
97
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"IsNavigationStackEnabled"))
111
+ static std::optional<bool> is_property_present{};
112
+
113
+ if (!is_property_present.has_value())
114
+ {
115
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"IsNavigationStackEnabled");
116
+ }
117
+
118
+ if (!is_property_present.value())
98
119
  {
99
120
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
100
121
  return nullptr;
@@ -119,7 +140,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
119
140
 
120
141
  try
121
142
  {
122
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"IsNavigationStackEnabled"))
143
+ static std::optional<bool> is_property_present{};
144
+
145
+ if (!is_property_present.has_value())
146
+ {
147
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.FrameNavigationOptions", L"IsNavigationStackEnabled");
148
+ }
149
+
150
+ if (!is_property_present.value())
123
151
  {
124
152
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
125
153
  return -1;
@@ -209,7 +237,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
209
237
  {
210
238
  try
211
239
  {
212
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Cancel"))
240
+ static std::optional<bool> is_property_present{};
241
+
242
+ if (!is_property_present.has_value())
243
+ {
244
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Cancel");
245
+ }
246
+
247
+ if (!is_property_present.value())
213
248
  {
214
249
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
215
250
  return nullptr;
@@ -234,7 +269,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
234
269
 
235
270
  try
236
271
  {
237
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Cancel"))
272
+ static std::optional<bool> is_property_present{};
273
+
274
+ if (!is_property_present.has_value())
275
+ {
276
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Cancel");
277
+ }
278
+
279
+ if (!is_property_present.value())
238
280
  {
239
281
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
240
282
  return -1;
@@ -256,7 +298,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
256
298
  {
257
299
  try
258
300
  {
259
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"NavigationMode"))
301
+ static std::optional<bool> is_property_present{};
302
+
303
+ if (!is_property_present.has_value())
304
+ {
305
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"NavigationMode");
306
+ }
307
+
308
+ if (!is_property_present.value())
260
309
  {
261
310
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
262
311
  return nullptr;
@@ -275,7 +324,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
275
324
  {
276
325
  try
277
326
  {
278
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"SourcePageType"))
327
+ static std::optional<bool> is_property_present{};
328
+
329
+ if (!is_property_present.has_value())
330
+ {
331
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"SourcePageType");
332
+ }
333
+
334
+ if (!is_property_present.value())
279
335
  {
280
336
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
281
337
  return nullptr;
@@ -294,7 +350,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
294
350
  {
295
351
  try
296
352
  {
297
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"NavigationTransitionInfo"))
353
+ static std::optional<bool> is_property_present{};
354
+
355
+ if (!is_property_present.has_value())
356
+ {
357
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"NavigationTransitionInfo");
358
+ }
359
+
360
+ if (!is_property_present.value())
298
361
  {
299
362
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
300
363
  return nullptr;
@@ -313,7 +376,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
313
376
  {
314
377
  try
315
378
  {
316
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Parameter"))
379
+ static std::optional<bool> is_property_present{};
380
+
381
+ if (!is_property_present.has_value())
382
+ {
383
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs", L"Parameter");
384
+ }
385
+
386
+ if (!is_property_present.value())
317
387
  {
318
388
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
319
389
  return nullptr;
@@ -403,7 +473,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
403
473
  {
404
474
  try
405
475
  {
406
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Uri"))
476
+ static std::optional<bool> is_property_present{};
477
+
478
+ if (!is_property_present.has_value())
479
+ {
480
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Uri");
481
+ }
482
+
483
+ if (!is_property_present.value())
407
484
  {
408
485
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
409
486
  return nullptr;
@@ -428,7 +505,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
428
505
 
429
506
  try
430
507
  {
431
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Uri"))
508
+ static std::optional<bool> is_property_present{};
509
+
510
+ if (!is_property_present.has_value())
511
+ {
512
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Uri");
513
+ }
514
+
515
+ if (!is_property_present.value())
432
516
  {
433
517
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
434
518
  return -1;
@@ -450,7 +534,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
450
534
  {
451
535
  try
452
536
  {
453
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Content"))
537
+ static std::optional<bool> is_property_present{};
538
+
539
+ if (!is_property_present.has_value())
540
+ {
541
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Content");
542
+ }
543
+
544
+ if (!is_property_present.value())
454
545
  {
455
546
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
456
547
  return nullptr;
@@ -469,7 +560,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
469
560
  {
470
561
  try
471
562
  {
472
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"NavigationMode"))
563
+ static std::optional<bool> is_property_present{};
564
+
565
+ if (!is_property_present.has_value())
566
+ {
567
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"NavigationMode");
568
+ }
569
+
570
+ if (!is_property_present.value())
473
571
  {
474
572
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
475
573
  return nullptr;
@@ -488,7 +586,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
488
586
  {
489
587
  try
490
588
  {
491
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Parameter"))
589
+ static std::optional<bool> is_property_present{};
590
+
591
+ if (!is_property_present.has_value())
592
+ {
593
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"Parameter");
594
+ }
595
+
596
+ if (!is_property_present.value())
492
597
  {
493
598
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
494
599
  return nullptr;
@@ -507,7 +612,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
507
612
  {
508
613
  try
509
614
  {
510
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"SourcePageType"))
615
+ static std::optional<bool> is_property_present{};
616
+
617
+ if (!is_property_present.has_value())
618
+ {
619
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"SourcePageType");
620
+ }
621
+
622
+ if (!is_property_present.value())
511
623
  {
512
624
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
513
625
  return nullptr;
@@ -526,7 +638,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
526
638
  {
527
639
  try
528
640
  {
529
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"NavigationTransitionInfo"))
641
+ static std::optional<bool> is_property_present{};
642
+
643
+ if (!is_property_present.has_value())
644
+ {
645
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationEventArgs", L"NavigationTransitionInfo");
646
+ }
647
+
648
+ if (!is_property_present.value())
530
649
  {
531
650
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
532
651
  return nullptr;
@@ -617,7 +736,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
617
736
  {
618
737
  try
619
738
  {
620
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Handled"))
739
+ static std::optional<bool> is_property_present{};
740
+
741
+ if (!is_property_present.has_value())
742
+ {
743
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Handled");
744
+ }
745
+
746
+ if (!is_property_present.value())
621
747
  {
622
748
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
623
749
  return nullptr;
@@ -642,7 +768,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
642
768
 
643
769
  try
644
770
  {
645
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Handled"))
771
+ static std::optional<bool> is_property_present{};
772
+
773
+ if (!is_property_present.has_value())
774
+ {
775
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Handled");
776
+ }
777
+
778
+ if (!is_property_present.value())
646
779
  {
647
780
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
648
781
  return -1;
@@ -664,7 +797,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
664
797
  {
665
798
  try
666
799
  {
667
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Exception"))
800
+ static std::optional<bool> is_property_present{};
801
+
802
+ if (!is_property_present.has_value())
803
+ {
804
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"Exception");
805
+ }
806
+
807
+ if (!is_property_present.value())
668
808
  {
669
809
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
670
810
  return nullptr;
@@ -683,7 +823,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
683
823
  {
684
824
  try
685
825
  {
686
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"SourcePageType"))
826
+ static std::optional<bool> is_property_present{};
827
+
828
+ if (!is_property_present.has_value())
829
+ {
830
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.NavigationFailedEventArgs", L"SourcePageType");
831
+ }
832
+
833
+ if (!is_property_present.value())
687
834
  {
688
835
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
689
836
  return nullptr;
@@ -769,7 +916,7 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
769
916
  auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
770
917
  auto param2 = py::convert_to<winrt::Windows::UI::Xaml::Media::Animation::NavigationTransitionInfo>(args, 2);
771
918
 
772
- winrt::Windows::UI::Xaml::Navigation::PageStackEntry instance{ param0, param1, param2 };
919
+ winrt::Windows::UI::Xaml::Navigation::PageStackEntry instance{param0, param1, param2};
773
920
  return py::wrap(instance, type);
774
921
  }
775
922
  catch (...)
@@ -801,7 +948,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
801
948
  {
802
949
  try
803
950
  {
804
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ClearValue", 1))
951
+ static std::optional<bool> is_overload_present{};
952
+
953
+ if (!is_overload_present.has_value())
954
+ {
955
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ClearValue", 1);
956
+ }
957
+
958
+ if (!is_overload_present.value())
805
959
  {
806
960
  py::set_arg_count_version_error(1);
807
961
  return nullptr;
@@ -833,7 +987,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
833
987
  {
834
988
  try
835
989
  {
836
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetAnimationBaseValue", 1))
990
+ static std::optional<bool> is_overload_present{};
991
+
992
+ if (!is_overload_present.has_value())
993
+ {
994
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetAnimationBaseValue", 1);
995
+ }
996
+
997
+ if (!is_overload_present.value())
837
998
  {
838
999
  py::set_arg_count_version_error(1);
839
1000
  return nullptr;
@@ -864,7 +1025,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
864
1025
  {
865
1026
  try
866
1027
  {
867
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetValue", 1))
1028
+ static std::optional<bool> is_overload_present{};
1029
+
1030
+ if (!is_overload_present.has_value())
1031
+ {
1032
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetValue", 1);
1033
+ }
1034
+
1035
+ if (!is_overload_present.value())
868
1036
  {
869
1037
  py::set_arg_count_version_error(1);
870
1038
  return nullptr;
@@ -895,7 +1063,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
895
1063
  {
896
1064
  try
897
1065
  {
898
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ReadLocalValue", 1))
1066
+ static std::optional<bool> is_overload_present{};
1067
+
1068
+ if (!is_overload_present.has_value())
1069
+ {
1070
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ReadLocalValue", 1);
1071
+ }
1072
+
1073
+ if (!is_overload_present.value())
899
1074
  {
900
1075
  py::set_arg_count_version_error(1);
901
1076
  return nullptr;
@@ -926,7 +1101,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
926
1101
  {
927
1102
  try
928
1103
  {
929
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"RegisterPropertyChangedCallback", 2))
1104
+ static std::optional<bool> is_overload_present{};
1105
+
1106
+ if (!is_overload_present.has_value())
1107
+ {
1108
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"RegisterPropertyChangedCallback", 2);
1109
+ }
1110
+
1111
+ if (!is_overload_present.value())
930
1112
  {
931
1113
  py::set_arg_count_version_error(2);
932
1114
  return nullptr;
@@ -958,7 +1140,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
958
1140
  {
959
1141
  try
960
1142
  {
961
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"SetValue", 2))
1143
+ static std::optional<bool> is_overload_present{};
1144
+
1145
+ if (!is_overload_present.has_value())
1146
+ {
1147
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"SetValue", 2);
1148
+ }
1149
+
1150
+ if (!is_overload_present.value())
962
1151
  {
963
1152
  py::set_arg_count_version_error(2);
964
1153
  return nullptr;
@@ -991,7 +1180,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
991
1180
  {
992
1181
  try
993
1182
  {
994
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"UnregisterPropertyChangedCallback", 2))
1183
+ static std::optional<bool> is_overload_present{};
1184
+
1185
+ if (!is_overload_present.has_value())
1186
+ {
1187
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"UnregisterPropertyChangedCallback", 2);
1188
+ }
1189
+
1190
+ if (!is_overload_present.value())
995
1191
  {
996
1192
  py::set_arg_count_version_error(2);
997
1193
  return nullptr;
@@ -1020,7 +1216,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
1020
1216
  {
1021
1217
  try
1022
1218
  {
1023
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"NavigationTransitionInfo"))
1219
+ static std::optional<bool> is_property_present{};
1220
+
1221
+ if (!is_property_present.has_value())
1222
+ {
1223
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"NavigationTransitionInfo");
1224
+ }
1225
+
1226
+ if (!is_property_present.value())
1024
1227
  {
1025
1228
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1026
1229
  return nullptr;
@@ -1039,7 +1242,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
1039
1242
  {
1040
1243
  try
1041
1244
  {
1042
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"Parameter"))
1245
+ static std::optional<bool> is_property_present{};
1246
+
1247
+ if (!is_property_present.has_value())
1248
+ {
1249
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"Parameter");
1250
+ }
1251
+
1252
+ if (!is_property_present.value())
1043
1253
  {
1044
1254
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1045
1255
  return nullptr;
@@ -1058,7 +1268,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
1058
1268
  {
1059
1269
  try
1060
1270
  {
1061
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"SourcePageType"))
1271
+ static std::optional<bool> is_property_present{};
1272
+
1273
+ if (!is_property_present.has_value())
1274
+ {
1275
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"SourcePageType");
1276
+ }
1277
+
1278
+ if (!is_property_present.value())
1062
1279
  {
1063
1280
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1064
1281
  return nullptr;
@@ -1077,7 +1294,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
1077
1294
  {
1078
1295
  try
1079
1296
  {
1080
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"SourcePageTypeProperty"))
1297
+ static std::optional<bool> is_property_present{};
1298
+
1299
+ if (!is_property_present.has_value())
1300
+ {
1301
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Navigation.PageStackEntry", L"SourcePageTypeProperty");
1302
+ }
1303
+
1304
+ if (!is_property_present.value())
1081
1305
  {
1082
1306
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1083
1307
  return nullptr;
@@ -1096,7 +1320,14 @@ namespace py::cpp::Windows::UI::Xaml::Navigation
1096
1320
  {
1097
1321
  try
1098
1322
  {
1099
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.DependencyObject", L"Dispatcher"))
1323
+ static std::optional<bool> is_property_present{};
1324
+
1325
+ if (!is_property_present.has_value())
1326
+ {
1327
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.DependencyObject", L"Dispatcher");
1328
+ }
1329
+
1330
+ if (!is_property_present.value())
1100
1331
  {
1101
1332
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1102
1333
  return nullptr;
@@ -1242,22 +1473,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_navigation(void) noexcept
1242
1473
  return nullptr;
1243
1474
  }
1244
1475
 
1245
- if (py::register_python_type(module.get(), &type_spec_FrameNavigationOptions, object_bases.get(), nullptr) == -1)
1476
+ py::pytype_handle FrameNavigationOptions_type{py::register_python_type(module.get(), &type_spec_FrameNavigationOptions, object_bases.get(), nullptr)};
1477
+ if (!FrameNavigationOptions_type)
1246
1478
  {
1247
1479
  return nullptr;
1248
1480
  }
1249
1481
 
1250
- if (py::register_python_type(module.get(), &type_spec_NavigatingCancelEventArgs, object_bases.get(), nullptr) == -1)
1482
+ py::pytype_handle NavigatingCancelEventArgs_type{py::register_python_type(module.get(), &type_spec_NavigatingCancelEventArgs, object_bases.get(), nullptr)};
1483
+ if (!NavigatingCancelEventArgs_type)
1251
1484
  {
1252
1485
  return nullptr;
1253
1486
  }
1254
1487
 
1255
- if (py::register_python_type(module.get(), &type_spec_NavigationEventArgs, object_bases.get(), nullptr) == -1)
1488
+ py::pytype_handle NavigationEventArgs_type{py::register_python_type(module.get(), &type_spec_NavigationEventArgs, object_bases.get(), nullptr)};
1489
+ if (!NavigationEventArgs_type)
1256
1490
  {
1257
1491
  return nullptr;
1258
1492
  }
1259
1493
 
1260
- if (py::register_python_type(module.get(), &type_spec_NavigationFailedEventArgs, object_bases.get(), nullptr) == -1)
1494
+ py::pytype_handle NavigationFailedEventArgs_type{py::register_python_type(module.get(), &type_spec_NavigationFailedEventArgs, object_bases.get(), nullptr)};
1495
+ if (!NavigationFailedEventArgs_type)
1261
1496
  {
1262
1497
  return nullptr;
1263
1498
  }
@@ -1268,7 +1503,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_navigation(void) noexcept
1268
1503
  return nullptr;
1269
1504
  }
1270
1505
 
1271
- if (py::register_python_type(module.get(), &type_spec_PageStackEntry, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PageStackEntry_Static.get())) == -1)
1506
+ py::pytype_handle PageStackEntry_type{py::register_python_type(module.get(), &type_spec_PageStackEntry, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PageStackEntry_Static.get()))};
1507
+ if (!PageStackEntry_type)
1272
1508
  {
1273
1509
  return nullptr;
1274
1510
  }
@@ -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.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.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.3.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.3.0
2
2
 
3
3
  import enum
4
4
  import typing
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Xaml.Navigation
3
- Version: 2.1.0
3
+ Version: 2.3.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,15 +10,15 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.Core[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.Core[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Xaml[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI.Xaml.Interop[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Xaml.Media.Animation[all]==2.3.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.UI.Core[all]==2.3.0
6
+ winrt-Windows.UI.Xaml[all]==2.3.0
7
+ winrt-Windows.UI.Xaml.Interop[all]==2.3.0
8
+ winrt-Windows.UI.Xaml.Media.Animation[all]==2.3.0
@@ -1,7 +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.UI.Core[all]==2.1.0
5
- winrt-Windows.UI.Xaml[all]==2.1.0
6
- winrt-Windows.UI.Xaml.Interop[all]==2.1.0
7
- winrt-Windows.UI.Xaml.Media.Animation[all]==2.1.0
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.UI.Core[all]==2.1.0
6
- winrt-Windows.UI.Xaml[all]==2.1.0
7
- winrt-Windows.UI.Xaml.Interop[all]==2.1.0
8
- winrt-Windows.UI.Xaml.Media.Animation[all]==2.1.0