winrt-Windows.Storage.AccessCache 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_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/PKG-INFO +7 -7
  2. winrt_windows_storage_accesscache-2.2.0/all-requirements.txt +6 -0
  3. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/py.Windows.Storage.AccessCache.cpp +529 -70
  4. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_storage_accesscache-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt/_winrt_windows_storage_accesscache.pyi +1 -3
  8. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt/windows/storage/accesscache/__init__.py +1 -1
  9. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt_Windows.Storage.AccessCache.egg-info/PKG-INFO +7 -7
  10. winrt_windows_storage_accesscache-2.2.0/winrt_Windows.Storage.AccessCache.egg-info/requires.txt +7 -0
  11. winrt_windows_storage_accesscache-2.1.0/all-requirements.txt +0 -6
  12. winrt_windows_storage_accesscache-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_storage_accesscache-2.1.0/winrt_Windows.Storage.AccessCache.egg-info/requires.txt +0 -7
  14. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/README.md +0 -0
  15. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/setup.py +0 -0
  17. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt/windows/storage/accesscache/py.typed +0 -0
  18. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt_Windows.Storage.AccessCache.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt_Windows.Storage.AccessCache.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_storage_accesscache-2.1.0 → winrt_windows_storage_accesscache-2.2.0}/winrt_Windows.Storage.AccessCache.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Storage.AccessCache
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,14 +10,14 @@ 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.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,6 @@
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.Foundation.Collections[all]==2.2.0
5
+ winrt-Windows.Storage[all]==2.2.0
6
+ winrt-Windows.System[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.Storage.AccessCache.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Storage::AccessCache
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"First", 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.Storage.AccessCache.AccessListEntryView", L"First", 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::Storage::AccessCache
58
65
  {
59
66
  try
60
67
  {
61
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"GetAt", 1))
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.Storage.AccessCache.AccessListEntryView", L"GetAt", 1);
73
+ }
74
+
75
+ if (!is_overload_present.value())
62
76
  {
63
77
  py::set_arg_count_version_error(1);
64
78
  return nullptr;
@@ -89,7 +103,14 @@ namespace py::cpp::Windows::Storage::AccessCache
89
103
  {
90
104
  try
91
105
  {
92
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"GetMany", 1))
106
+ static std::optional<bool> is_overload_present{};
107
+
108
+ if (!is_overload_present.has_value())
109
+ {
110
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"GetMany", 1);
111
+ }
112
+
113
+ if (!is_overload_present.value())
93
114
  {
94
115
  py::set_arg_count_version_error(1);
95
116
  return nullptr;
@@ -121,7 +142,14 @@ namespace py::cpp::Windows::Storage::AccessCache
121
142
  {
122
143
  try
123
144
  {
124
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"IndexOf", 1))
145
+ static std::optional<bool> is_overload_present{};
146
+
147
+ if (!is_overload_present.has_value())
148
+ {
149
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"IndexOf", 1);
150
+ }
151
+
152
+ if (!is_overload_present.value())
125
153
  {
126
154
  py::set_arg_count_version_error(1);
127
155
  return nullptr;
@@ -161,7 +189,14 @@ namespace py::cpp::Windows::Storage::AccessCache
161
189
  {
162
190
  try
163
191
  {
164
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"Size"))
192
+ static std::optional<bool> is_property_present{};
193
+
194
+ if (!is_property_present.has_value())
195
+ {
196
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.AccessListEntryView", L"Size");
197
+ }
198
+
199
+ if (!is_property_present.value())
165
200
  {
166
201
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
167
202
  return nullptr;
@@ -354,7 +389,14 @@ namespace py::cpp::Windows::Storage::AccessCache
354
389
  {
355
390
  try
356
391
  {
357
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.ItemRemovedEventArgs", L"RemovedEntry"))
392
+ static std::optional<bool> is_property_present{};
393
+
394
+ if (!is_property_present.has_value())
395
+ {
396
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.ItemRemovedEventArgs", L"RemovedEntry");
397
+ }
398
+
399
+ if (!is_property_present.value())
358
400
  {
359
401
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
360
402
  return nullptr;
@@ -436,7 +478,14 @@ namespace py::cpp::Windows::Storage::AccessCache
436
478
  {
437
479
  try
438
480
  {
439
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"GetFutureAccessListForUser", 1))
481
+ static std::optional<bool> is_overload_present{};
482
+
483
+ if (!is_overload_present.has_value())
484
+ {
485
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"GetFutureAccessListForUser", 1);
486
+ }
487
+
488
+ if (!is_overload_present.value())
440
489
  {
441
490
  py::set_arg_count_version_error(1);
442
491
  return nullptr;
@@ -467,7 +516,14 @@ namespace py::cpp::Windows::Storage::AccessCache
467
516
  {
468
517
  try
469
518
  {
470
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"GetMostRecentlyUsedListForUser", 1))
519
+ static std::optional<bool> is_overload_present{};
520
+
521
+ if (!is_overload_present.has_value())
522
+ {
523
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"GetMostRecentlyUsedListForUser", 1);
524
+ }
525
+
526
+ if (!is_overload_present.value())
471
527
  {
472
528
  py::set_arg_count_version_error(1);
473
529
  return nullptr;
@@ -494,7 +550,14 @@ namespace py::cpp::Windows::Storage::AccessCache
494
550
  {
495
551
  try
496
552
  {
497
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"FutureAccessList"))
553
+ static std::optional<bool> is_property_present{};
554
+
555
+ if (!is_property_present.has_value())
556
+ {
557
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"FutureAccessList");
558
+ }
559
+
560
+ if (!is_property_present.value())
498
561
  {
499
562
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
500
563
  return nullptr;
@@ -513,7 +576,14 @@ namespace py::cpp::Windows::Storage::AccessCache
513
576
  {
514
577
  try
515
578
  {
516
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"MostRecentlyUsedList"))
579
+ static std::optional<bool> is_property_present{};
580
+
581
+ if (!is_property_present.has_value())
582
+ {
583
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageApplicationPermissions", L"MostRecentlyUsedList");
584
+ }
585
+
586
+ if (!is_property_present.value())
517
587
  {
518
588
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
519
589
  return nullptr;
@@ -604,7 +674,14 @@ namespace py::cpp::Windows::Storage::AccessCache
604
674
  {
605
675
  try
606
676
  {
607
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Add", 1))
677
+ static std::optional<bool> is_overload_present{};
678
+
679
+ if (!is_overload_present.has_value())
680
+ {
681
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Add", 1);
682
+ }
683
+
684
+ if (!is_overload_present.value())
608
685
  {
609
686
  py::set_arg_count_version_error(1);
610
687
  return nullptr;
@@ -624,7 +701,14 @@ namespace py::cpp::Windows::Storage::AccessCache
624
701
  {
625
702
  try
626
703
  {
627
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Add", 2))
704
+ static std::optional<bool> is_overload_present{};
705
+
706
+ if (!is_overload_present.has_value())
707
+ {
708
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Add", 2);
709
+ }
710
+
711
+ if (!is_overload_present.value())
628
712
  {
629
713
  py::set_arg_count_version_error(2);
630
714
  return nullptr;
@@ -656,7 +740,14 @@ namespace py::cpp::Windows::Storage::AccessCache
656
740
  {
657
741
  try
658
742
  {
659
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"AddOrReplace", 2))
743
+ static std::optional<bool> is_overload_present{};
744
+
745
+ if (!is_overload_present.has_value())
746
+ {
747
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"AddOrReplace", 2);
748
+ }
749
+
750
+ if (!is_overload_present.value())
660
751
  {
661
752
  py::set_arg_count_version_error(2);
662
753
  return nullptr;
@@ -678,7 +769,14 @@ namespace py::cpp::Windows::Storage::AccessCache
678
769
  {
679
770
  try
680
771
  {
681
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"AddOrReplace", 3))
772
+ static std::optional<bool> is_overload_present{};
773
+
774
+ if (!is_overload_present.has_value())
775
+ {
776
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"AddOrReplace", 3);
777
+ }
778
+
779
+ if (!is_overload_present.value())
682
780
  {
683
781
  py::set_arg_count_version_error(3);
684
782
  return nullptr;
@@ -712,7 +810,14 @@ namespace py::cpp::Windows::Storage::AccessCache
712
810
  {
713
811
  try
714
812
  {
715
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"CheckAccess", 1))
813
+ static std::optional<bool> is_overload_present{};
814
+
815
+ if (!is_overload_present.has_value())
816
+ {
817
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"CheckAccess", 1);
818
+ }
819
+
820
+ if (!is_overload_present.value())
716
821
  {
717
822
  py::set_arg_count_version_error(1);
718
823
  return nullptr;
@@ -743,7 +848,14 @@ namespace py::cpp::Windows::Storage::AccessCache
743
848
  {
744
849
  try
745
850
  {
746
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Clear", 0))
851
+ static std::optional<bool> is_overload_present{};
852
+
853
+ if (!is_overload_present.has_value())
854
+ {
855
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Clear", 0);
856
+ }
857
+
858
+ if (!is_overload_present.value())
747
859
  {
748
860
  py::set_arg_count_version_error(0);
749
861
  return nullptr;
@@ -773,7 +885,14 @@ namespace py::cpp::Windows::Storage::AccessCache
773
885
  {
774
886
  try
775
887
  {
776
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"ContainsItem", 1))
888
+ static std::optional<bool> is_overload_present{};
889
+
890
+ if (!is_overload_present.has_value())
891
+ {
892
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"ContainsItem", 1);
893
+ }
894
+
895
+ if (!is_overload_present.value())
777
896
  {
778
897
  py::set_arg_count_version_error(1);
779
898
  return nullptr;
@@ -804,7 +923,14 @@ namespace py::cpp::Windows::Storage::AccessCache
804
923
  {
805
924
  try
806
925
  {
807
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFileAsync", 1))
926
+ static std::optional<bool> is_overload_present{};
927
+
928
+ if (!is_overload_present.has_value())
929
+ {
930
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFileAsync", 1);
931
+ }
932
+
933
+ if (!is_overload_present.value())
808
934
  {
809
935
  py::set_arg_count_version_error(1);
810
936
  return nullptr;
@@ -824,7 +950,14 @@ namespace py::cpp::Windows::Storage::AccessCache
824
950
  {
825
951
  try
826
952
  {
827
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFileAsync", 2))
953
+ static std::optional<bool> is_overload_present{};
954
+
955
+ if (!is_overload_present.has_value())
956
+ {
957
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFileAsync", 2);
958
+ }
959
+
960
+ if (!is_overload_present.value())
828
961
  {
829
962
  py::set_arg_count_version_error(2);
830
963
  return nullptr;
@@ -856,7 +989,14 @@ namespace py::cpp::Windows::Storage::AccessCache
856
989
  {
857
990
  try
858
991
  {
859
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFolderAsync", 1))
992
+ static std::optional<bool> is_overload_present{};
993
+
994
+ if (!is_overload_present.has_value())
995
+ {
996
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFolderAsync", 1);
997
+ }
998
+
999
+ if (!is_overload_present.value())
860
1000
  {
861
1001
  py::set_arg_count_version_error(1);
862
1002
  return nullptr;
@@ -876,7 +1016,14 @@ namespace py::cpp::Windows::Storage::AccessCache
876
1016
  {
877
1017
  try
878
1018
  {
879
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFolderAsync", 2))
1019
+ static std::optional<bool> is_overload_present{};
1020
+
1021
+ if (!is_overload_present.has_value())
1022
+ {
1023
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetFolderAsync", 2);
1024
+ }
1025
+
1026
+ if (!is_overload_present.value())
880
1027
  {
881
1028
  py::set_arg_count_version_error(2);
882
1029
  return nullptr;
@@ -908,7 +1055,14 @@ namespace py::cpp::Windows::Storage::AccessCache
908
1055
  {
909
1056
  try
910
1057
  {
911
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetItemAsync", 1))
1058
+ static std::optional<bool> is_overload_present{};
1059
+
1060
+ if (!is_overload_present.has_value())
1061
+ {
1062
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetItemAsync", 1);
1063
+ }
1064
+
1065
+ if (!is_overload_present.value())
912
1066
  {
913
1067
  py::set_arg_count_version_error(1);
914
1068
  return nullptr;
@@ -928,7 +1082,14 @@ namespace py::cpp::Windows::Storage::AccessCache
928
1082
  {
929
1083
  try
930
1084
  {
931
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetItemAsync", 2))
1085
+ static std::optional<bool> is_overload_present{};
1086
+
1087
+ if (!is_overload_present.has_value())
1088
+ {
1089
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"GetItemAsync", 2);
1090
+ }
1091
+
1092
+ if (!is_overload_present.value())
932
1093
  {
933
1094
  py::set_arg_count_version_error(2);
934
1095
  return nullptr;
@@ -960,7 +1121,14 @@ namespace py::cpp::Windows::Storage::AccessCache
960
1121
  {
961
1122
  try
962
1123
  {
963
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Remove", 1))
1124
+ static std::optional<bool> is_overload_present{};
1125
+
1126
+ if (!is_overload_present.has_value())
1127
+ {
1128
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Remove", 1);
1129
+ }
1130
+
1131
+ if (!is_overload_present.value())
964
1132
  {
965
1133
  py::set_arg_count_version_error(1);
966
1134
  return nullptr;
@@ -988,7 +1156,14 @@ namespace py::cpp::Windows::Storage::AccessCache
988
1156
  {
989
1157
  try
990
1158
  {
991
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Entries"))
1159
+ static std::optional<bool> is_property_present{};
1160
+
1161
+ if (!is_property_present.has_value())
1162
+ {
1163
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"Entries");
1164
+ }
1165
+
1166
+ if (!is_property_present.value())
992
1167
  {
993
1168
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
994
1169
  return nullptr;
@@ -1007,7 +1182,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1007
1182
  {
1008
1183
  try
1009
1184
  {
1010
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"MaximumItemsAllowed"))
1185
+ static std::optional<bool> is_property_present{};
1186
+
1187
+ if (!is_property_present.has_value())
1188
+ {
1189
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemAccessList", L"MaximumItemsAllowed");
1190
+ }
1191
+
1192
+ if (!is_property_present.value())
1011
1193
  {
1012
1194
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1013
1195
  return nullptr;
@@ -1107,7 +1289,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1107
1289
  {
1108
1290
  try
1109
1291
  {
1110
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 1))
1292
+ static std::optional<bool> is_overload_present{};
1293
+
1294
+ if (!is_overload_present.has_value())
1295
+ {
1296
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 1);
1297
+ }
1298
+
1299
+ if (!is_overload_present.value())
1111
1300
  {
1112
1301
  py::set_arg_count_version_error(1);
1113
1302
  return nullptr;
@@ -1127,7 +1316,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1127
1316
  {
1128
1317
  try
1129
1318
  {
1130
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 2))
1319
+ static std::optional<bool> is_overload_present{};
1320
+
1321
+ if (!is_overload_present.has_value())
1322
+ {
1323
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 2);
1324
+ }
1325
+
1326
+ if (!is_overload_present.value())
1131
1327
  {
1132
1328
  py::set_arg_count_version_error(2);
1133
1329
  return nullptr;
@@ -1148,7 +1344,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1148
1344
  {
1149
1345
  try
1150
1346
  {
1151
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 3))
1347
+ static std::optional<bool> is_overload_present{};
1348
+
1349
+ if (!is_overload_present.has_value())
1350
+ {
1351
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Add", 3);
1352
+ }
1353
+
1354
+ if (!is_overload_present.value())
1152
1355
  {
1153
1356
  py::set_arg_count_version_error(3);
1154
1357
  return nullptr;
@@ -1181,7 +1384,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1181
1384
  {
1182
1385
  try
1183
1386
  {
1184
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 2))
1387
+ static std::optional<bool> is_overload_present{};
1388
+
1389
+ if (!is_overload_present.has_value())
1390
+ {
1391
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 2);
1392
+ }
1393
+
1394
+ if (!is_overload_present.value())
1185
1395
  {
1186
1396
  py::set_arg_count_version_error(2);
1187
1397
  return nullptr;
@@ -1203,7 +1413,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1203
1413
  {
1204
1414
  try
1205
1415
  {
1206
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 3))
1416
+ static std::optional<bool> is_overload_present{};
1417
+
1418
+ if (!is_overload_present.has_value())
1419
+ {
1420
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 3);
1421
+ }
1422
+
1423
+ if (!is_overload_present.value())
1207
1424
  {
1208
1425
  py::set_arg_count_version_error(3);
1209
1426
  return nullptr;
@@ -1226,7 +1443,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1226
1443
  {
1227
1444
  try
1228
1445
  {
1229
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 4))
1446
+ static std::optional<bool> is_overload_present{};
1447
+
1448
+ if (!is_overload_present.has_value())
1449
+ {
1450
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"AddOrReplace", 4);
1451
+ }
1452
+
1453
+ if (!is_overload_present.value())
1230
1454
  {
1231
1455
  py::set_arg_count_version_error(4);
1232
1456
  return nullptr;
@@ -1261,7 +1485,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1261
1485
  {
1262
1486
  try
1263
1487
  {
1264
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"CheckAccess", 1))
1488
+ static std::optional<bool> is_overload_present{};
1489
+
1490
+ if (!is_overload_present.has_value())
1491
+ {
1492
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"CheckAccess", 1);
1493
+ }
1494
+
1495
+ if (!is_overload_present.value())
1265
1496
  {
1266
1497
  py::set_arg_count_version_error(1);
1267
1498
  return nullptr;
@@ -1292,7 +1523,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1292
1523
  {
1293
1524
  try
1294
1525
  {
1295
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Clear", 0))
1526
+ static std::optional<bool> is_overload_present{};
1527
+
1528
+ if (!is_overload_present.has_value())
1529
+ {
1530
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Clear", 0);
1531
+ }
1532
+
1533
+ if (!is_overload_present.value())
1296
1534
  {
1297
1535
  py::set_arg_count_version_error(0);
1298
1536
  return nullptr;
@@ -1322,7 +1560,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1322
1560
  {
1323
1561
  try
1324
1562
  {
1325
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ContainsItem", 1))
1563
+ static std::optional<bool> is_overload_present{};
1564
+
1565
+ if (!is_overload_present.has_value())
1566
+ {
1567
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ContainsItem", 1);
1568
+ }
1569
+
1570
+ if (!is_overload_present.value())
1326
1571
  {
1327
1572
  py::set_arg_count_version_error(1);
1328
1573
  return nullptr;
@@ -1353,7 +1598,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1353
1598
  {
1354
1599
  try
1355
1600
  {
1356
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFileAsync", 1))
1601
+ static std::optional<bool> is_overload_present{};
1602
+
1603
+ if (!is_overload_present.has_value())
1604
+ {
1605
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFileAsync", 1);
1606
+ }
1607
+
1608
+ if (!is_overload_present.value())
1357
1609
  {
1358
1610
  py::set_arg_count_version_error(1);
1359
1611
  return nullptr;
@@ -1373,7 +1625,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1373
1625
  {
1374
1626
  try
1375
1627
  {
1376
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFileAsync", 2))
1628
+ static std::optional<bool> is_overload_present{};
1629
+
1630
+ if (!is_overload_present.has_value())
1631
+ {
1632
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFileAsync", 2);
1633
+ }
1634
+
1635
+ if (!is_overload_present.value())
1377
1636
  {
1378
1637
  py::set_arg_count_version_error(2);
1379
1638
  return nullptr;
@@ -1405,7 +1664,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1405
1664
  {
1406
1665
  try
1407
1666
  {
1408
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFolderAsync", 1))
1667
+ static std::optional<bool> is_overload_present{};
1668
+
1669
+ if (!is_overload_present.has_value())
1670
+ {
1671
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFolderAsync", 1);
1672
+ }
1673
+
1674
+ if (!is_overload_present.value())
1409
1675
  {
1410
1676
  py::set_arg_count_version_error(1);
1411
1677
  return nullptr;
@@ -1425,7 +1691,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1425
1691
  {
1426
1692
  try
1427
1693
  {
1428
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFolderAsync", 2))
1694
+ static std::optional<bool> is_overload_present{};
1695
+
1696
+ if (!is_overload_present.has_value())
1697
+ {
1698
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetFolderAsync", 2);
1699
+ }
1700
+
1701
+ if (!is_overload_present.value())
1429
1702
  {
1430
1703
  py::set_arg_count_version_error(2);
1431
1704
  return nullptr;
@@ -1457,7 +1730,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1457
1730
  {
1458
1731
  try
1459
1732
  {
1460
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetItemAsync", 1))
1733
+ static std::optional<bool> is_overload_present{};
1734
+
1735
+ if (!is_overload_present.has_value())
1736
+ {
1737
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetItemAsync", 1);
1738
+ }
1739
+
1740
+ if (!is_overload_present.value())
1461
1741
  {
1462
1742
  py::set_arg_count_version_error(1);
1463
1743
  return nullptr;
@@ -1477,7 +1757,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1477
1757
  {
1478
1758
  try
1479
1759
  {
1480
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetItemAsync", 2))
1760
+ static std::optional<bool> is_overload_present{};
1761
+
1762
+ if (!is_overload_present.has_value())
1763
+ {
1764
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"GetItemAsync", 2);
1765
+ }
1766
+
1767
+ if (!is_overload_present.value())
1481
1768
  {
1482
1769
  py::set_arg_count_version_error(2);
1483
1770
  return nullptr;
@@ -1509,7 +1796,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1509
1796
  {
1510
1797
  try
1511
1798
  {
1512
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Remove", 1))
1799
+ static std::optional<bool> is_overload_present{};
1800
+
1801
+ if (!is_overload_present.has_value())
1802
+ {
1803
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Remove", 1);
1804
+ }
1805
+
1806
+ if (!is_overload_present.value())
1513
1807
  {
1514
1808
  py::set_arg_count_version_error(1);
1515
1809
  return nullptr;
@@ -1537,7 +1831,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1537
1831
  {
1538
1832
  try
1539
1833
  {
1540
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Entries"))
1834
+ static std::optional<bool> is_property_present{};
1835
+
1836
+ if (!is_property_present.has_value())
1837
+ {
1838
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"Entries");
1839
+ }
1840
+
1841
+ if (!is_property_present.value())
1541
1842
  {
1542
1843
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1543
1844
  return nullptr;
@@ -1556,7 +1857,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1556
1857
  {
1557
1858
  try
1558
1859
  {
1559
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"MaximumItemsAllowed"))
1860
+ static std::optional<bool> is_property_present{};
1861
+
1862
+ if (!is_property_present.has_value())
1863
+ {
1864
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"MaximumItemsAllowed");
1865
+ }
1866
+
1867
+ if (!is_property_present.value())
1560
1868
  {
1561
1869
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1562
1870
  return nullptr;
@@ -1575,7 +1883,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1575
1883
  {
1576
1884
  try
1577
1885
  {
1578
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ItemRemoved"))
1886
+ static std::optional<bool> is_event_present{};
1887
+
1888
+ if (!is_event_present.has_value())
1889
+ {
1890
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ItemRemoved");
1891
+ }
1892
+
1893
+ if (!is_event_present.value())
1579
1894
  {
1580
1895
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1581
1896
  return nullptr;
@@ -1596,7 +1911,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1596
1911
  {
1597
1912
  try
1598
1913
  {
1599
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ItemRemoved"))
1914
+ static std::optional<bool> is_event_present{};
1915
+
1916
+ if (!is_event_present.has_value())
1917
+ {
1918
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.AccessCache.StorageItemMostRecentlyUsedList", L"ItemRemoved");
1919
+ }
1920
+
1921
+ if (!is_event_present.value())
1600
1922
  {
1601
1923
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1602
1924
  return nullptr;
@@ -1701,7 +2023,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1701
2023
  {
1702
2024
  try
1703
2025
  {
1704
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Add", 1))
2026
+ static std::optional<bool> is_overload_present{};
2027
+
2028
+ if (!is_overload_present.has_value())
2029
+ {
2030
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Add", 1);
2031
+ }
2032
+
2033
+ if (!is_overload_present.value())
1705
2034
  {
1706
2035
  py::set_arg_count_version_error(1);
1707
2036
  return nullptr;
@@ -1721,7 +2050,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1721
2050
  {
1722
2051
  try
1723
2052
  {
1724
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Add", 2))
2053
+ static std::optional<bool> is_overload_present{};
2054
+
2055
+ if (!is_overload_present.has_value())
2056
+ {
2057
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Add", 2);
2058
+ }
2059
+
2060
+ if (!is_overload_present.value())
1725
2061
  {
1726
2062
  py::set_arg_count_version_error(2);
1727
2063
  return nullptr;
@@ -1753,7 +2089,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1753
2089
  {
1754
2090
  try
1755
2091
  {
1756
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"AddOrReplace", 2))
2092
+ static std::optional<bool> is_overload_present{};
2093
+
2094
+ if (!is_overload_present.has_value())
2095
+ {
2096
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"AddOrReplace", 2);
2097
+ }
2098
+
2099
+ if (!is_overload_present.value())
1757
2100
  {
1758
2101
  py::set_arg_count_version_error(2);
1759
2102
  return nullptr;
@@ -1775,7 +2118,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1775
2118
  {
1776
2119
  try
1777
2120
  {
1778
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"AddOrReplace", 3))
2121
+ static std::optional<bool> is_overload_present{};
2122
+
2123
+ if (!is_overload_present.has_value())
2124
+ {
2125
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"AddOrReplace", 3);
2126
+ }
2127
+
2128
+ if (!is_overload_present.value())
1779
2129
  {
1780
2130
  py::set_arg_count_version_error(3);
1781
2131
  return nullptr;
@@ -1809,7 +2159,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1809
2159
  {
1810
2160
  try
1811
2161
  {
1812
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"CheckAccess", 1))
2162
+ static std::optional<bool> is_overload_present{};
2163
+
2164
+ if (!is_overload_present.has_value())
2165
+ {
2166
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"CheckAccess", 1);
2167
+ }
2168
+
2169
+ if (!is_overload_present.value())
1813
2170
  {
1814
2171
  py::set_arg_count_version_error(1);
1815
2172
  return nullptr;
@@ -1840,7 +2197,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1840
2197
  {
1841
2198
  try
1842
2199
  {
1843
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Clear", 0))
2200
+ static std::optional<bool> is_overload_present{};
2201
+
2202
+ if (!is_overload_present.has_value())
2203
+ {
2204
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Clear", 0);
2205
+ }
2206
+
2207
+ if (!is_overload_present.value())
1844
2208
  {
1845
2209
  py::set_arg_count_version_error(0);
1846
2210
  return nullptr;
@@ -1870,7 +2234,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1870
2234
  {
1871
2235
  try
1872
2236
  {
1873
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"ContainsItem", 1))
2237
+ static std::optional<bool> is_overload_present{};
2238
+
2239
+ if (!is_overload_present.has_value())
2240
+ {
2241
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"ContainsItem", 1);
2242
+ }
2243
+
2244
+ if (!is_overload_present.value())
1874
2245
  {
1875
2246
  py::set_arg_count_version_error(1);
1876
2247
  return nullptr;
@@ -1901,7 +2272,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1901
2272
  {
1902
2273
  try
1903
2274
  {
1904
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFileAsync", 1))
2275
+ static std::optional<bool> is_overload_present{};
2276
+
2277
+ if (!is_overload_present.has_value())
2278
+ {
2279
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFileAsync", 1);
2280
+ }
2281
+
2282
+ if (!is_overload_present.value())
1905
2283
  {
1906
2284
  py::set_arg_count_version_error(1);
1907
2285
  return nullptr;
@@ -1921,7 +2299,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1921
2299
  {
1922
2300
  try
1923
2301
  {
1924
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFileAsync", 2))
2302
+ static std::optional<bool> is_overload_present{};
2303
+
2304
+ if (!is_overload_present.has_value())
2305
+ {
2306
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFileAsync", 2);
2307
+ }
2308
+
2309
+ if (!is_overload_present.value())
1925
2310
  {
1926
2311
  py::set_arg_count_version_error(2);
1927
2312
  return nullptr;
@@ -1953,7 +2338,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1953
2338
  {
1954
2339
  try
1955
2340
  {
1956
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFolderAsync", 1))
2341
+ static std::optional<bool> is_overload_present{};
2342
+
2343
+ if (!is_overload_present.has_value())
2344
+ {
2345
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFolderAsync", 1);
2346
+ }
2347
+
2348
+ if (!is_overload_present.value())
1957
2349
  {
1958
2350
  py::set_arg_count_version_error(1);
1959
2351
  return nullptr;
@@ -1973,7 +2365,14 @@ namespace py::cpp::Windows::Storage::AccessCache
1973
2365
  {
1974
2366
  try
1975
2367
  {
1976
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFolderAsync", 2))
2368
+ static std::optional<bool> is_overload_present{};
2369
+
2370
+ if (!is_overload_present.has_value())
2371
+ {
2372
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetFolderAsync", 2);
2373
+ }
2374
+
2375
+ if (!is_overload_present.value())
1977
2376
  {
1978
2377
  py::set_arg_count_version_error(2);
1979
2378
  return nullptr;
@@ -2005,7 +2404,14 @@ namespace py::cpp::Windows::Storage::AccessCache
2005
2404
  {
2006
2405
  try
2007
2406
  {
2008
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetItemAsync", 1))
2407
+ static std::optional<bool> is_overload_present{};
2408
+
2409
+ if (!is_overload_present.has_value())
2410
+ {
2411
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetItemAsync", 1);
2412
+ }
2413
+
2414
+ if (!is_overload_present.value())
2009
2415
  {
2010
2416
  py::set_arg_count_version_error(1);
2011
2417
  return nullptr;
@@ -2025,7 +2431,14 @@ namespace py::cpp::Windows::Storage::AccessCache
2025
2431
  {
2026
2432
  try
2027
2433
  {
2028
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetItemAsync", 2))
2434
+ static std::optional<bool> is_overload_present{};
2435
+
2436
+ if (!is_overload_present.has_value())
2437
+ {
2438
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"GetItemAsync", 2);
2439
+ }
2440
+
2441
+ if (!is_overload_present.value())
2029
2442
  {
2030
2443
  py::set_arg_count_version_error(2);
2031
2444
  return nullptr;
@@ -2057,7 +2470,14 @@ namespace py::cpp::Windows::Storage::AccessCache
2057
2470
  {
2058
2471
  try
2059
2472
  {
2060
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Remove", 1))
2473
+ static std::optional<bool> is_overload_present{};
2474
+
2475
+ if (!is_overload_present.has_value())
2476
+ {
2477
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Remove", 1);
2478
+ }
2479
+
2480
+ if (!is_overload_present.value())
2061
2481
  {
2062
2482
  py::set_arg_count_version_error(1);
2063
2483
  return nullptr;
@@ -2085,7 +2505,14 @@ namespace py::cpp::Windows::Storage::AccessCache
2085
2505
  {
2086
2506
  try
2087
2507
  {
2088
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Entries"))
2508
+ static std::optional<bool> is_property_present{};
2509
+
2510
+ if (!is_property_present.has_value())
2511
+ {
2512
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"Entries");
2513
+ }
2514
+
2515
+ if (!is_property_present.value())
2089
2516
  {
2090
2517
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
2091
2518
  return nullptr;
@@ -2104,7 +2531,14 @@ namespace py::cpp::Windows::Storage::AccessCache
2104
2531
  {
2105
2532
  try
2106
2533
  {
2107
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"MaximumItemsAllowed"))
2534
+ static std::optional<bool> is_property_present{};
2535
+
2536
+ if (!is_property_present.has_value())
2537
+ {
2538
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.AccessCache.IStorageItemAccessList", L"MaximumItemsAllowed");
2539
+ }
2540
+
2541
+ if (!is_property_present.value())
2108
2542
  {
2109
2543
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
2110
2544
  return nullptr;
@@ -2358,6 +2792,23 @@ namespace py::cpp::Windows::Storage::AccessCache
2358
2792
  }
2359
2793
  }
2360
2794
 
2795
+ static PyObject* _repr_AccessListEntry(PyObject* self) noexcept
2796
+ {
2797
+ py::pyobj_handle Token{PyObject_GetAttrString(self, "token")};
2798
+ if (!Token)
2799
+ {
2800
+ return nullptr;
2801
+ }
2802
+
2803
+ py::pyobj_handle Metadata{PyObject_GetAttrString(self, "metadata")};
2804
+ if (!Metadata)
2805
+ {
2806
+ return nullptr;
2807
+ }
2808
+
2809
+ return PyUnicode_FromFormat("AccessListEntry(token=%R, metadata=%R)", Token.get(), Metadata.get());
2810
+ }
2811
+
2361
2812
  static PyType_Slot _type_slots_AccessListEntry[] = {
2362
2813
  { Py_tp_new, reinterpret_cast<void*>(_new_AccessListEntry) },
2363
2814
  { Py_tp_init, reinterpret_cast<void*>(_init_AccessListEntry) },
@@ -2365,6 +2816,7 @@ namespace py::cpp::Windows::Storage::AccessCache
2365
2816
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AccessListEntry) },
2366
2817
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AccessListEntry) },
2367
2818
  { Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_AccessListEntry) },
2819
+ { Py_tp_repr, reinterpret_cast<void*>(_repr_AccessListEntry) },
2368
2820
  { }
2369
2821
  };
2370
2822
 
@@ -2420,12 +2872,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_storage_accesscache(void) noexcept
2420
2872
  return nullptr;
2421
2873
  }
2422
2874
 
2423
- if (py::register_python_type(module.get(), &type_spec_AccessListEntryView, object_bases.get(), nullptr) == -1)
2875
+ py::pytype_handle AccessListEntryView_type{py::register_python_type(module.get(), &type_spec_AccessListEntryView, object_bases.get(), nullptr)};
2876
+ if (!AccessListEntryView_type)
2424
2877
  {
2425
2878
  return nullptr;
2426
2879
  }
2427
2880
 
2428
- if (py::register_python_type(module.get(), &type_spec_ItemRemovedEventArgs, object_bases.get(), nullptr) == -1)
2881
+ py::pytype_handle ItemRemovedEventArgs_type{py::register_python_type(module.get(), &type_spec_ItemRemovedEventArgs, object_bases.get(), nullptr)};
2882
+ if (!ItemRemovedEventArgs_type)
2429
2883
  {
2430
2884
  return nullptr;
2431
2885
  }
@@ -2436,27 +2890,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_storage_accesscache(void) noexcept
2436
2890
  return nullptr;
2437
2891
  }
2438
2892
 
2439
- if (py::register_python_type(module.get(), &type_spec_StorageApplicationPermissions, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StorageApplicationPermissions_Static.get())) == -1)
2893
+ py::pytype_handle StorageApplicationPermissions_type{py::register_python_type(module.get(), &type_spec_StorageApplicationPermissions, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_StorageApplicationPermissions_Static.get()))};
2894
+ if (!StorageApplicationPermissions_type)
2440
2895
  {
2441
2896
  return nullptr;
2442
2897
  }
2443
2898
 
2444
- if (py::register_python_type(module.get(), &type_spec_StorageItemAccessList, object_bases.get(), nullptr) == -1)
2899
+ py::pytype_handle StorageItemAccessList_type{py::register_python_type(module.get(), &type_spec_StorageItemAccessList, object_bases.get(), nullptr)};
2900
+ if (!StorageItemAccessList_type)
2445
2901
  {
2446
2902
  return nullptr;
2447
2903
  }
2448
2904
 
2449
- if (py::register_python_type(module.get(), &type_spec_StorageItemMostRecentlyUsedList, object_bases.get(), nullptr) == -1)
2905
+ py::pytype_handle StorageItemMostRecentlyUsedList_type{py::register_python_type(module.get(), &type_spec_StorageItemMostRecentlyUsedList, object_bases.get(), nullptr)};
2906
+ if (!StorageItemMostRecentlyUsedList_type)
2450
2907
  {
2451
2908
  return nullptr;
2452
2909
  }
2453
2910
 
2454
- if (py::register_python_type(module.get(), &type_spec_IStorageItemAccessList, object_bases.get(), nullptr) == -1)
2911
+ py::pytype_handle IStorageItemAccessList_type{py::register_python_type(module.get(), &type_spec_IStorageItemAccessList, object_bases.get(), nullptr)};
2912
+ if (!IStorageItemAccessList_type)
2455
2913
  {
2456
2914
  return nullptr;
2457
2915
  }
2458
2916
 
2459
- if (py::register_python_type(module.get(), &type_spec_AccessListEntry, nullptr, nullptr) == -1)
2917
+ py::pytype_handle AccessListEntry_type{py::register_python_type(module.get(), &type_spec_AccessListEntry, nullptr, nullptr)};
2918
+ if (!AccessListEntry_type)
2460
2919
  {
2461
2920
  return nullptr;
2462
2921
  }
@@ -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
@@ -23,8 +23,6 @@ class AccessListEntry:
23
23
  token: str
24
24
  metadata: str
25
25
  def __init__(self, token: str, metadata: str) -> None: ...
26
- def __eq__(self, other: object, /) -> bool: ...
27
- def __ne__(self, other: object, /) -> bool: ...
28
26
 
29
27
  @typing.final
30
28
  class AccessListEntryView(winrt.system.Object, winrt._winrt.Sequence[AccessListEntry]):
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Storage.AccessCache
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,14 +10,14 @@ 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.Foundation.Collections[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,7 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
6
+ winrt-Windows.Storage[all]==2.2.0
7
+ winrt-Windows.System[all]==2.2.0
@@ -1,6 +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.Storage[all]==2.1.0
6
- winrt-Windows.System[all]==2.1.0
@@ -1,7 +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.Storage[all]==2.1.0
7
- winrt-Windows.System[all]==2.1.0