winrt-Windows.UI.ApplicationSettings 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_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/PKG-INFO +8 -8
  2. winrt_windows_ui_applicationsettings-2.3.0/all-requirements.txt +7 -0
  3. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/py.Windows.UI.ApplicationSettings.cpp +340 -56
  4. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_ui_applicationsettings-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt/_winrt_windows_ui_applicationsettings.pyi +1 -1
  8. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt/windows/ui/applicationsettings/__init__.py +1 -1
  9. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt_Windows.UI.ApplicationSettings.egg-info/PKG-INFO +8 -8
  10. winrt_windows_ui_applicationsettings-2.3.0/winrt_Windows.UI.ApplicationSettings.egg-info/requires.txt +8 -0
  11. winrt_windows_ui_applicationsettings-2.1.0/all-requirements.txt +0 -7
  12. winrt_windows_ui_applicationsettings-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_applicationsettings-2.1.0/winrt_Windows.UI.ApplicationSettings.egg-info/requires.txt +0 -8
  14. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/README.md +0 -0
  15. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/setup.py +0 -0
  17. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt/windows/ui/applicationsettings/py.typed +0 -0
  18. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt_Windows.UI.ApplicationSettings.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt_Windows.UI.ApplicationSettings.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_applicationsettings-2.1.0 → winrt_windows_ui_applicationsettings-2.3.0}/winrt_Windows.UI.ApplicationSettings.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.ApplicationSettings
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.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Popups[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Popups[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.Foundation.Collections[all]==2.3.0
5
+ winrt-Windows.Security.Credentials[all]==2.3.0
6
+ winrt-Windows.System[all]==2.3.0
7
+ winrt-Windows.UI.Popups[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.ApplicationSettings.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"GetForCurrentView", 0))
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.UI.ApplicationSettings.AccountsSettingsPane", L"GetForCurrentView", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(0);
35
42
  return nullptr;
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
58
65
  {
59
66
  try
60
67
  {
61
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"Show", 0))
68
+ static std::optional<bool> is_overload_present{};
69
+
70
+ if (!is_overload_present.has_value())
71
+ {
72
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"Show", 0);
73
+ }
74
+
75
+ if (!is_overload_present.value())
62
76
  {
63
77
  py::set_arg_count_version_error(0);
64
78
  return nullptr;
@@ -88,7 +102,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
88
102
  {
89
103
  try
90
104
  {
91
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowAddAccountAsync", 0))
105
+ static std::optional<bool> is_overload_present{};
106
+
107
+ if (!is_overload_present.has_value())
108
+ {
109
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowAddAccountAsync", 0);
110
+ }
111
+
112
+ if (!is_overload_present.value())
92
113
  {
93
114
  py::set_arg_count_version_error(0);
94
115
  return nullptr;
@@ -117,7 +138,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
117
138
  {
118
139
  try
119
140
  {
120
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowAddAccountForUserAsync", 1))
141
+ static std::optional<bool> is_overload_present{};
142
+
143
+ if (!is_overload_present.has_value())
144
+ {
145
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowAddAccountForUserAsync", 1);
146
+ }
147
+
148
+ if (!is_overload_present.value())
121
149
  {
122
150
  py::set_arg_count_version_error(1);
123
151
  return nullptr;
@@ -148,7 +176,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
148
176
  {
149
177
  try
150
178
  {
151
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowManageAccountsAsync", 0))
179
+ static std::optional<bool> is_overload_present{};
180
+
181
+ if (!is_overload_present.has_value())
182
+ {
183
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowManageAccountsAsync", 0);
184
+ }
185
+
186
+ if (!is_overload_present.value())
152
187
  {
153
188
  py::set_arg_count_version_error(0);
154
189
  return nullptr;
@@ -177,7 +212,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
177
212
  {
178
213
  try
179
214
  {
180
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowManageAccountsForUserAsync", 1))
215
+ static std::optional<bool> is_overload_present{};
216
+
217
+ if (!is_overload_present.has_value())
218
+ {
219
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"ShowManageAccountsForUserAsync", 1);
220
+ }
221
+
222
+ if (!is_overload_present.value())
181
223
  {
182
224
  py::set_arg_count_version_error(1);
183
225
  return nullptr;
@@ -204,7 +246,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
204
246
  {
205
247
  try
206
248
  {
207
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"AccountCommandsRequested"))
249
+ static std::optional<bool> is_event_present{};
250
+
251
+ if (!is_event_present.has_value())
252
+ {
253
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"AccountCommandsRequested");
254
+ }
255
+
256
+ if (!is_event_present.value())
208
257
  {
209
258
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
210
259
  return nullptr;
@@ -225,7 +274,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
225
274
  {
226
275
  try
227
276
  {
228
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"AccountCommandsRequested"))
277
+ static std::optional<bool> is_event_present{};
278
+
279
+ if (!is_event_present.has_value())
280
+ {
281
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPane", L"AccountCommandsRequested");
282
+ }
283
+
284
+ if (!is_event_present.value())
229
285
  {
230
286
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
231
287
  return nullptr;
@@ -350,7 +406,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
350
406
  {
351
407
  try
352
408
  {
353
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"GetDeferral", 0))
409
+ static std::optional<bool> is_overload_present{};
410
+
411
+ if (!is_overload_present.has_value())
412
+ {
413
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"GetDeferral", 0);
414
+ }
415
+
416
+ if (!is_overload_present.value())
354
417
  {
355
418
  py::set_arg_count_version_error(0);
356
419
  return nullptr;
@@ -375,7 +438,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
375
438
  {
376
439
  try
377
440
  {
378
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"HeaderText"))
441
+ static std::optional<bool> is_property_present{};
442
+
443
+ if (!is_property_present.has_value())
444
+ {
445
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"HeaderText");
446
+ }
447
+
448
+ if (!is_property_present.value())
379
449
  {
380
450
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
381
451
  return nullptr;
@@ -400,7 +470,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
400
470
 
401
471
  try
402
472
  {
403
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"HeaderText"))
473
+ static std::optional<bool> is_property_present{};
474
+
475
+ if (!is_property_present.has_value())
476
+ {
477
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"HeaderText");
478
+ }
479
+
480
+ if (!is_property_present.value())
404
481
  {
405
482
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
406
483
  return -1;
@@ -422,7 +499,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
422
499
  {
423
500
  try
424
501
  {
425
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"Commands"))
502
+ static std::optional<bool> is_property_present{};
503
+
504
+ if (!is_property_present.has_value())
505
+ {
506
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"Commands");
507
+ }
508
+
509
+ if (!is_property_present.value())
426
510
  {
427
511
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
428
512
  return nullptr;
@@ -441,7 +525,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
441
525
  {
442
526
  try
443
527
  {
444
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"CredentialCommands"))
528
+ static std::optional<bool> is_property_present{};
529
+
530
+ if (!is_property_present.has_value())
531
+ {
532
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"CredentialCommands");
533
+ }
534
+
535
+ if (!is_property_present.value())
445
536
  {
446
537
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
447
538
  return nullptr;
@@ -460,7 +551,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
460
551
  {
461
552
  try
462
553
  {
463
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"WebAccountCommands"))
554
+ static std::optional<bool> is_property_present{};
555
+
556
+ if (!is_property_present.has_value())
557
+ {
558
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"WebAccountCommands");
559
+ }
560
+
561
+ if (!is_property_present.value())
464
562
  {
465
563
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
466
564
  return nullptr;
@@ -479,7 +577,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
479
577
  {
480
578
  try
481
579
  {
482
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"WebAccountProviderCommands"))
580
+ static std::optional<bool> is_property_present{};
581
+
582
+ if (!is_property_present.has_value())
583
+ {
584
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"WebAccountProviderCommands");
585
+ }
586
+
587
+ if (!is_property_present.value())
483
588
  {
484
589
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
485
590
  return nullptr;
@@ -498,7 +603,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
498
603
  {
499
604
  try
500
605
  {
501
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"User"))
606
+ static std::optional<bool> is_property_present{};
607
+
608
+ if (!is_property_present.has_value())
609
+ {
610
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneCommandsRequestedEventArgs", L"User");
611
+ }
612
+
613
+ if (!is_property_present.value())
502
614
  {
503
615
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
504
616
  return nullptr;
@@ -594,7 +706,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
594
706
  {
595
707
  try
596
708
  {
597
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneEventDeferral", L"Complete", 0))
709
+ static std::optional<bool> is_overload_present{};
710
+
711
+ if (!is_overload_present.has_value())
712
+ {
713
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.AccountsSettingsPaneEventDeferral", L"Complete", 0);
714
+ }
715
+
716
+ if (!is_overload_present.value())
598
717
  {
599
718
  py::set_arg_count_version_error(0);
600
719
  return nullptr;
@@ -683,7 +802,7 @@ namespace py::cpp::Windows::UI::ApplicationSettings
683
802
  {
684
803
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::PasswordCredential>(args, 0);
685
804
 
686
- winrt::Windows::UI::ApplicationSettings::CredentialCommand instance{ param0 };
805
+ winrt::Windows::UI::ApplicationSettings::CredentialCommand instance{param0};
687
806
  return py::wrap(instance, type);
688
807
  }
689
808
  catch (...)
@@ -699,7 +818,7 @@ namespace py::cpp::Windows::UI::ApplicationSettings
699
818
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::PasswordCredential>(args, 0);
700
819
  auto param1 = py::convert_to<winrt::Windows::UI::ApplicationSettings::CredentialCommandCredentialDeletedHandler>(args, 1);
701
820
 
702
- winrt::Windows::UI::ApplicationSettings::CredentialCommand instance{ param0, param1 };
821
+ winrt::Windows::UI::ApplicationSettings::CredentialCommand instance{param0, param1};
703
822
  return py::wrap(instance, type);
704
823
  }
705
824
  catch (...)
@@ -727,7 +846,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
727
846
  {
728
847
  try
729
848
  {
730
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.CredentialCommand", L"CredentialDeleted"))
849
+ static std::optional<bool> is_property_present{};
850
+
851
+ if (!is_property_present.has_value())
852
+ {
853
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.CredentialCommand", L"CredentialDeleted");
854
+ }
855
+
856
+ if (!is_property_present.value())
731
857
  {
732
858
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
733
859
  return nullptr;
@@ -746,7 +872,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
746
872
  {
747
873
  try
748
874
  {
749
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.CredentialCommand", L"PasswordCredential"))
875
+ static std::optional<bool> is_property_present{};
876
+
877
+ if (!is_property_present.has_value())
878
+ {
879
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.CredentialCommand", L"PasswordCredential");
880
+ }
881
+
882
+ if (!is_property_present.value())
750
883
  {
751
884
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
752
885
  return nullptr;
@@ -831,7 +964,7 @@ namespace py::cpp::Windows::UI::ApplicationSettings
831
964
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
832
965
  auto param2 = py::convert_to<winrt::Windows::UI::Popups::UICommandInvokedHandler>(args, 2);
833
966
 
834
- winrt::Windows::UI::ApplicationSettings::SettingsCommand instance{ param0, param1, param2 };
967
+ winrt::Windows::UI::ApplicationSettings::SettingsCommand instance{param0, param1, param2};
835
968
  return py::wrap(instance, type);
836
969
  }
837
970
  catch (...)
@@ -859,7 +992,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
859
992
  {
860
993
  try
861
994
  {
862
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Label"))
995
+ static std::optional<bool> is_property_present{};
996
+
997
+ if (!is_property_present.has_value())
998
+ {
999
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Label");
1000
+ }
1001
+
1002
+ if (!is_property_present.value())
863
1003
  {
864
1004
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
865
1005
  return nullptr;
@@ -884,7 +1024,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
884
1024
 
885
1025
  try
886
1026
  {
887
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Label"))
1027
+ static std::optional<bool> is_property_present{};
1028
+
1029
+ if (!is_property_present.has_value())
1030
+ {
1031
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Label");
1032
+ }
1033
+
1034
+ if (!is_property_present.value())
888
1035
  {
889
1036
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
890
1037
  return -1;
@@ -906,7 +1053,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
906
1053
  {
907
1054
  try
908
1055
  {
909
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Invoked"))
1056
+ static std::optional<bool> is_property_present{};
1057
+
1058
+ if (!is_property_present.has_value())
1059
+ {
1060
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Invoked");
1061
+ }
1062
+
1063
+ if (!is_property_present.value())
910
1064
  {
911
1065
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
912
1066
  return nullptr;
@@ -931,7 +1085,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
931
1085
 
932
1086
  try
933
1087
  {
934
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Invoked"))
1088
+ static std::optional<bool> is_property_present{};
1089
+
1090
+ if (!is_property_present.has_value())
1091
+ {
1092
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Invoked");
1093
+ }
1094
+
1095
+ if (!is_property_present.value())
935
1096
  {
936
1097
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
937
1098
  return -1;
@@ -953,7 +1114,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
953
1114
  {
954
1115
  try
955
1116
  {
956
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Id"))
1117
+ static std::optional<bool> is_property_present{};
1118
+
1119
+ if (!is_property_present.has_value())
1120
+ {
1121
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Id");
1122
+ }
1123
+
1124
+ if (!is_property_present.value())
957
1125
  {
958
1126
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
959
1127
  return nullptr;
@@ -978,7 +1146,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
978
1146
 
979
1147
  try
980
1148
  {
981
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Id"))
1149
+ static std::optional<bool> is_property_present{};
1150
+
1151
+ if (!is_property_present.has_value())
1152
+ {
1153
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"Id");
1154
+ }
1155
+
1156
+ if (!is_property_present.value())
982
1157
  {
983
1158
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
984
1159
  return -1;
@@ -1000,7 +1175,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1000
1175
  {
1001
1176
  try
1002
1177
  {
1003
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"AccountsCommand"))
1178
+ static std::optional<bool> is_property_present{};
1179
+
1180
+ if (!is_property_present.has_value())
1181
+ {
1182
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsCommand", L"AccountsCommand");
1183
+ }
1184
+
1185
+ if (!is_property_present.value())
1004
1186
  {
1005
1187
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1006
1188
  return nullptr;
@@ -1118,7 +1300,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1118
1300
  {
1119
1301
  try
1120
1302
  {
1121
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"GetForCurrentView", 0))
1303
+ static std::optional<bool> is_overload_present{};
1304
+
1305
+ if (!is_overload_present.has_value())
1306
+ {
1307
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"GetForCurrentView", 0);
1308
+ }
1309
+
1310
+ if (!is_overload_present.value())
1122
1311
  {
1123
1312
  py::set_arg_count_version_error(0);
1124
1313
  return nullptr;
@@ -1147,7 +1336,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1147
1336
  {
1148
1337
  try
1149
1338
  {
1150
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"Show", 0))
1339
+ static std::optional<bool> is_overload_present{};
1340
+
1341
+ if (!is_overload_present.has_value())
1342
+ {
1343
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"Show", 0);
1344
+ }
1345
+
1346
+ if (!is_overload_present.value())
1151
1347
  {
1152
1348
  py::set_arg_count_version_error(0);
1153
1349
  return nullptr;
@@ -1173,7 +1369,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1173
1369
  {
1174
1370
  try
1175
1371
  {
1176
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"Edge"))
1372
+ static std::optional<bool> is_property_present{};
1373
+
1374
+ if (!is_property_present.has_value())
1375
+ {
1376
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"Edge");
1377
+ }
1378
+
1379
+ if (!is_property_present.value())
1177
1380
  {
1178
1381
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1179
1382
  return nullptr;
@@ -1192,7 +1395,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1192
1395
  {
1193
1396
  try
1194
1397
  {
1195
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"CommandsRequested"))
1398
+ static std::optional<bool> is_event_present{};
1399
+
1400
+ if (!is_event_present.has_value())
1401
+ {
1402
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"CommandsRequested");
1403
+ }
1404
+
1405
+ if (!is_event_present.value())
1196
1406
  {
1197
1407
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1198
1408
  return nullptr;
@@ -1213,7 +1423,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1213
1423
  {
1214
1424
  try
1215
1425
  {
1216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"CommandsRequested"))
1426
+ static std::optional<bool> is_event_present{};
1427
+
1428
+ if (!is_event_present.has_value())
1429
+ {
1430
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.ApplicationSettings.SettingsPane", L"CommandsRequested");
1431
+ }
1432
+
1433
+ if (!is_event_present.value())
1217
1434
  {
1218
1435
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1219
1436
  return nullptr;
@@ -1331,7 +1548,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1331
1548
  {
1332
1549
  try
1333
1550
  {
1334
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPaneCommandsRequest", L"ApplicationCommands"))
1551
+ static std::optional<bool> is_property_present{};
1552
+
1553
+ if (!is_property_present.has_value())
1554
+ {
1555
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPaneCommandsRequest", L"ApplicationCommands");
1556
+ }
1557
+
1558
+ if (!is_property_present.value())
1335
1559
  {
1336
1560
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1337
1561
  return nullptr;
@@ -1417,7 +1641,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1417
1641
  {
1418
1642
  try
1419
1643
  {
1420
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs", L"Request"))
1644
+ static std::optional<bool> is_property_present{};
1645
+
1646
+ if (!is_property_present.has_value())
1647
+ {
1648
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs", L"Request");
1649
+ }
1650
+
1651
+ if (!is_property_present.value())
1421
1652
  {
1422
1653
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1423
1654
  return nullptr;
@@ -1501,7 +1732,7 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1501
1732
  auto param1 = py::convert_to<winrt::Windows::UI::ApplicationSettings::WebAccountCommandInvokedHandler>(args, 1);
1502
1733
  auto param2 = py::convert_to<winrt::Windows::UI::ApplicationSettings::SupportedWebAccountActions>(args, 2);
1503
1734
 
1504
- winrt::Windows::UI::ApplicationSettings::WebAccountCommand instance{ param0, param1, param2 };
1735
+ winrt::Windows::UI::ApplicationSettings::WebAccountCommand instance{param0, param1, param2};
1505
1736
  return py::wrap(instance, type);
1506
1737
  }
1507
1738
  catch (...)
@@ -1529,7 +1760,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1529
1760
  {
1530
1761
  try
1531
1762
  {
1532
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"Actions"))
1763
+ static std::optional<bool> is_property_present{};
1764
+
1765
+ if (!is_property_present.has_value())
1766
+ {
1767
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"Actions");
1768
+ }
1769
+
1770
+ if (!is_property_present.value())
1533
1771
  {
1534
1772
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1535
1773
  return nullptr;
@@ -1548,7 +1786,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1548
1786
  {
1549
1787
  try
1550
1788
  {
1551
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"Invoked"))
1789
+ static std::optional<bool> is_property_present{};
1790
+
1791
+ if (!is_property_present.has_value())
1792
+ {
1793
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"Invoked");
1794
+ }
1795
+
1796
+ if (!is_property_present.value())
1552
1797
  {
1553
1798
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1554
1799
  return nullptr;
@@ -1567,7 +1812,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1567
1812
  {
1568
1813
  try
1569
1814
  {
1570
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"WebAccount"))
1815
+ static std::optional<bool> is_property_present{};
1816
+
1817
+ if (!is_property_present.has_value())
1818
+ {
1819
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountCommand", L"WebAccount");
1820
+ }
1821
+
1822
+ if (!is_property_present.value())
1571
1823
  {
1572
1824
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1573
1825
  return nullptr;
@@ -1655,7 +1907,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1655
1907
  {
1656
1908
  try
1657
1909
  {
1658
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountInvokedArgs", L"Action"))
1910
+ static std::optional<bool> is_property_present{};
1911
+
1912
+ if (!is_property_present.has_value())
1913
+ {
1914
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountInvokedArgs", L"Action");
1915
+ }
1916
+
1917
+ if (!is_property_present.value())
1659
1918
  {
1660
1919
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1661
1920
  return nullptr;
@@ -1738,7 +1997,7 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1738
1997
  auto param0 = py::convert_to<winrt::Windows::Security::Credentials::WebAccountProvider>(args, 0);
1739
1998
  auto param1 = py::convert_to<winrt::Windows::UI::ApplicationSettings::WebAccountProviderCommandInvokedHandler>(args, 1);
1740
1999
 
1741
- winrt::Windows::UI::ApplicationSettings::WebAccountProviderCommand instance{ param0, param1 };
2000
+ winrt::Windows::UI::ApplicationSettings::WebAccountProviderCommand instance{param0, param1};
1742
2001
  return py::wrap(instance, type);
1743
2002
  }
1744
2003
  catch (...)
@@ -1766,7 +2025,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1766
2025
  {
1767
2026
  try
1768
2027
  {
1769
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountProviderCommand", L"Invoked"))
2028
+ static std::optional<bool> is_property_present{};
2029
+
2030
+ if (!is_property_present.has_value())
2031
+ {
2032
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountProviderCommand", L"Invoked");
2033
+ }
2034
+
2035
+ if (!is_property_present.value())
1770
2036
  {
1771
2037
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1772
2038
  return nullptr;
@@ -1785,7 +2051,14 @@ namespace py::cpp::Windows::UI::ApplicationSettings
1785
2051
  {
1786
2052
  try
1787
2053
  {
1788
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountProviderCommand", L"WebAccountProvider"))
2054
+ static std::optional<bool> is_property_present{};
2055
+
2056
+ if (!is_property_present.has_value())
2057
+ {
2058
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.ApplicationSettings.WebAccountProviderCommand", L"WebAccountProvider");
2059
+ }
2060
+
2061
+ if (!is_property_present.value())
1789
2062
  {
1790
2063
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1791
2064
  return nullptr;
@@ -1902,22 +2175,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_applicationsettings(void) noexcept
1902
2175
  return nullptr;
1903
2176
  }
1904
2177
 
1905
- if (py::register_python_type(module.get(), &type_spec_AccountsSettingsPane, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AccountsSettingsPane_Static.get())) == -1)
2178
+ py::pytype_handle AccountsSettingsPane_type{py::register_python_type(module.get(), &type_spec_AccountsSettingsPane, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AccountsSettingsPane_Static.get()))};
2179
+ if (!AccountsSettingsPane_type)
1906
2180
  {
1907
2181
  return nullptr;
1908
2182
  }
1909
2183
 
1910
- if (py::register_python_type(module.get(), &type_spec_AccountsSettingsPaneCommandsRequestedEventArgs, object_bases.get(), nullptr) == -1)
2184
+ py::pytype_handle AccountsSettingsPaneCommandsRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_AccountsSettingsPaneCommandsRequestedEventArgs, object_bases.get(), nullptr)};
2185
+ if (!AccountsSettingsPaneCommandsRequestedEventArgs_type)
1911
2186
  {
1912
2187
  return nullptr;
1913
2188
  }
1914
2189
 
1915
- if (py::register_python_type(module.get(), &type_spec_AccountsSettingsPaneEventDeferral, object_bases.get(), nullptr) == -1)
2190
+ py::pytype_handle AccountsSettingsPaneEventDeferral_type{py::register_python_type(module.get(), &type_spec_AccountsSettingsPaneEventDeferral, object_bases.get(), nullptr)};
2191
+ if (!AccountsSettingsPaneEventDeferral_type)
1916
2192
  {
1917
2193
  return nullptr;
1918
2194
  }
1919
2195
 
1920
- if (py::register_python_type(module.get(), &type_spec_CredentialCommand, object_bases.get(), nullptr) == -1)
2196
+ py::pytype_handle CredentialCommand_type{py::register_python_type(module.get(), &type_spec_CredentialCommand, object_bases.get(), nullptr)};
2197
+ if (!CredentialCommand_type)
1921
2198
  {
1922
2199
  return nullptr;
1923
2200
  }
@@ -1928,7 +2205,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_applicationsettings(void) noexcept
1928
2205
  return nullptr;
1929
2206
  }
1930
2207
 
1931
- if (py::register_python_type(module.get(), &type_spec_SettingsCommand, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SettingsCommand_Static.get())) == -1)
2208
+ py::pytype_handle SettingsCommand_type{py::register_python_type(module.get(), &type_spec_SettingsCommand, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SettingsCommand_Static.get()))};
2209
+ if (!SettingsCommand_type)
1932
2210
  {
1933
2211
  return nullptr;
1934
2212
  }
@@ -1939,32 +2217,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_applicationsettings(void) noexcept
1939
2217
  return nullptr;
1940
2218
  }
1941
2219
 
1942
- if (py::register_python_type(module.get(), &type_spec_SettingsPane, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SettingsPane_Static.get())) == -1)
2220
+ py::pytype_handle SettingsPane_type{py::register_python_type(module.get(), &type_spec_SettingsPane, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SettingsPane_Static.get()))};
2221
+ if (!SettingsPane_type)
1943
2222
  {
1944
2223
  return nullptr;
1945
2224
  }
1946
2225
 
1947
- if (py::register_python_type(module.get(), &type_spec_SettingsPaneCommandsRequest, object_bases.get(), nullptr) == -1)
2226
+ py::pytype_handle SettingsPaneCommandsRequest_type{py::register_python_type(module.get(), &type_spec_SettingsPaneCommandsRequest, object_bases.get(), nullptr)};
2227
+ if (!SettingsPaneCommandsRequest_type)
1948
2228
  {
1949
2229
  return nullptr;
1950
2230
  }
1951
2231
 
1952
- if (py::register_python_type(module.get(), &type_spec_SettingsPaneCommandsRequestedEventArgs, object_bases.get(), nullptr) == -1)
2232
+ py::pytype_handle SettingsPaneCommandsRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_SettingsPaneCommandsRequestedEventArgs, object_bases.get(), nullptr)};
2233
+ if (!SettingsPaneCommandsRequestedEventArgs_type)
1953
2234
  {
1954
2235
  return nullptr;
1955
2236
  }
1956
2237
 
1957
- if (py::register_python_type(module.get(), &type_spec_WebAccountCommand, object_bases.get(), nullptr) == -1)
2238
+ py::pytype_handle WebAccountCommand_type{py::register_python_type(module.get(), &type_spec_WebAccountCommand, object_bases.get(), nullptr)};
2239
+ if (!WebAccountCommand_type)
1958
2240
  {
1959
2241
  return nullptr;
1960
2242
  }
1961
2243
 
1962
- if (py::register_python_type(module.get(), &type_spec_WebAccountInvokedArgs, object_bases.get(), nullptr) == -1)
2244
+ py::pytype_handle WebAccountInvokedArgs_type{py::register_python_type(module.get(), &type_spec_WebAccountInvokedArgs, object_bases.get(), nullptr)};
2245
+ if (!WebAccountInvokedArgs_type)
1963
2246
  {
1964
2247
  return nullptr;
1965
2248
  }
1966
2249
 
1967
- if (py::register_python_type(module.get(), &type_spec_WebAccountProviderCommand, object_bases.get(), nullptr) == -1)
2250
+ py::pytype_handle WebAccountProviderCommand_type{py::register_python_type(module.get(), &type_spec_WebAccountProviderCommand, object_bases.get(), nullptr)};
2251
+ if (!WebAccountProviderCommand_type)
1968
2252
  {
1969
2253
  return nullptr;
1970
2254
  }
@@ -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.ApplicationSettings
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.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Security.Credentials[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Popups[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Security.Credentials[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Popups[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.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Security.Credentials[all]==2.3.0
7
+ winrt-Windows.System[all]==2.3.0
8
+ winrt-Windows.UI.Popups[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.Foundation.Collections[all]==2.1.0
5
- winrt-Windows.Security.Credentials[all]==2.1.0
6
- winrt-Windows.System[all]==2.1.0
7
- winrt-Windows.UI.Popups[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.Foundation.Collections[all]==2.1.0
6
- winrt-Windows.Security.Credentials[all]==2.1.0
7
- winrt-Windows.System[all]==2.1.0
8
- winrt-Windows.UI.Popups[all]==2.1.0