winrt-Windows.UI.UIAutomation.Core 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_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/PKG-INFO +5 -5
  2. winrt_windows_ui_uiautomation_core-2.2.0/all-requirements.txt +4 -0
  3. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/py.Windows.UI.UIAutomation.Core.cpp +318 -50
  4. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_ui_uiautomation_core-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt/_winrt_windows_ui_uiautomation_core.pyi +1 -5
  8. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt/windows/ui/uiautomation/core/__init__.py +1 -1
  9. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt_Windows.UI.UIAutomation.Core.egg-info/PKG-INFO +5 -5
  10. winrt_windows_ui_uiautomation_core-2.2.0/winrt_Windows.UI.UIAutomation.Core.egg-info/requires.txt +5 -0
  11. winrt_windows_ui_uiautomation_core-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_ui_uiautomation_core-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_uiautomation_core-2.1.0/winrt_Windows.UI.UIAutomation.Core.egg-info/requires.txt +0 -5
  14. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/README.md +0 -0
  15. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/setup.py +0 -0
  17. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt/windows/ui/uiautomation/core/py.typed +0 -0
  18. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt_Windows.UI.UIAutomation.Core.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt_Windows.UI.UIAutomation.Core.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_uiautomation_core-2.1.0 → winrt_windows_ui_uiautomation_core-2.2.0}/winrt_Windows.UI.UIAutomation.Core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.UIAutomation.Core
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.UIAutomation[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.UIAutomation[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.UI.UIAutomation[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.UI.UIAutomation.Core.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"GetOperand", 1))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"GetOperand", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(1);
35
42
  return nullptr;
@@ -60,7 +67,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
60
67
  {
61
68
  try
62
69
  {
63
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"HasOperand", 1))
70
+ static std::optional<bool> is_overload_present{};
71
+
72
+ if (!is_overload_present.has_value())
73
+ {
74
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"HasOperand", 1);
75
+ }
76
+
77
+ if (!is_overload_present.value())
64
78
  {
65
79
  py::set_arg_count_version_error(1);
66
80
  return nullptr;
@@ -87,7 +101,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
87
101
  {
88
102
  try
89
103
  {
90
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"ErrorLocation"))
104
+ static std::optional<bool> is_property_present{};
105
+
106
+ if (!is_property_present.has_value())
107
+ {
108
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"ErrorLocation");
109
+ }
110
+
111
+ if (!is_property_present.value())
91
112
  {
92
113
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
93
114
  return nullptr;
@@ -106,7 +127,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
106
127
  {
107
128
  try
108
129
  {
109
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"ExtendedError"))
130
+ static std::optional<bool> is_property_present{};
131
+
132
+ if (!is_property_present.has_value())
133
+ {
134
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"ExtendedError");
135
+ }
136
+
137
+ if (!is_property_present.value())
110
138
  {
111
139
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
112
140
  return nullptr;
@@ -125,7 +153,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
125
153
  {
126
154
  try
127
155
  {
128
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"Status"))
156
+ static std::optional<bool> is_property_present{};
157
+
158
+ if (!is_property_present.has_value())
159
+ {
160
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult", L"Status");
161
+ }
162
+
163
+ if (!is_property_present.value())
129
164
  {
130
165
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
131
166
  return nullptr;
@@ -211,7 +246,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
211
246
  {
212
247
  try
213
248
  {
214
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRegistrar", L"RegisterAnnotationType", 1))
249
+ static std::optional<bool> is_overload_present{};
250
+
251
+ if (!is_overload_present.has_value())
252
+ {
253
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRegistrar", L"RegisterAnnotationType", 1);
254
+ }
255
+
256
+ if (!is_overload_present.value())
215
257
  {
216
258
  py::set_arg_count_version_error(1);
217
259
  return nullptr;
@@ -242,7 +284,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
242
284
  {
243
285
  try
244
286
  {
245
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRegistrar", L"UnregisterAnnotationType", 1))
287
+ static std::optional<bool> is_overload_present{};
288
+
289
+ if (!is_overload_present.has_value())
290
+ {
291
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRegistrar", L"UnregisterAnnotationType", 1);
292
+ }
293
+
294
+ if (!is_overload_present.value())
246
295
  {
247
296
  py::set_arg_count_version_error(1);
248
297
  return nullptr;
@@ -330,7 +379,7 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
330
379
  {
331
380
  try
332
381
  {
333
- winrt::Windows::UI::UIAutomation::Core::CoreAutomationRemoteOperation instance{ };
382
+ winrt::Windows::UI::UIAutomation::Core::CoreAutomationRemoteOperation instance{};
334
383
  return py::wrap(instance, type);
335
384
  }
336
385
  catch (...)
@@ -362,7 +411,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
362
411
  {
363
412
  try
364
413
  {
365
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"AddToResults", 1))
414
+ static std::optional<bool> is_overload_present{};
415
+
416
+ if (!is_overload_present.has_value())
417
+ {
418
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"AddToResults", 1);
419
+ }
420
+
421
+ if (!is_overload_present.value())
366
422
  {
367
423
  py::set_arg_count_version_error(1);
368
424
  return nullptr;
@@ -394,7 +450,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
394
450
  {
395
451
  try
396
452
  {
397
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"Execute", 1))
453
+ static std::optional<bool> is_overload_present{};
454
+
455
+ if (!is_overload_present.has_value())
456
+ {
457
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"Execute", 1);
458
+ }
459
+
460
+ if (!is_overload_present.value())
398
461
  {
399
462
  py::set_arg_count_version_error(1);
400
463
  return nullptr;
@@ -425,7 +488,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
425
488
  {
426
489
  try
427
490
  {
428
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportConnectionBoundObject", 2))
491
+ static std::optional<bool> is_overload_present{};
492
+
493
+ if (!is_overload_present.has_value())
494
+ {
495
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportConnectionBoundObject", 2);
496
+ }
497
+
498
+ if (!is_overload_present.value())
429
499
  {
430
500
  py::set_arg_count_version_error(2);
431
501
  return nullptr;
@@ -458,7 +528,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
458
528
  {
459
529
  try
460
530
  {
461
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportElement", 2))
531
+ static std::optional<bool> is_overload_present{};
532
+
533
+ if (!is_overload_present.has_value())
534
+ {
535
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportElement", 2);
536
+ }
537
+
538
+ if (!is_overload_present.value())
462
539
  {
463
540
  py::set_arg_count_version_error(2);
464
541
  return nullptr;
@@ -491,7 +568,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
491
568
  {
492
569
  try
493
570
  {
494
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportTextRange", 2))
571
+ static std::optional<bool> is_overload_present{};
572
+
573
+ if (!is_overload_present.has_value())
574
+ {
575
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"ImportTextRange", 2);
576
+ }
577
+
578
+ if (!is_overload_present.value())
495
579
  {
496
580
  py::set_arg_count_version_error(2);
497
581
  return nullptr;
@@ -524,7 +608,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
524
608
  {
525
609
  try
526
610
  {
527
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"IsOpcodeSupported", 1))
611
+ static std::optional<bool> is_overload_present{};
612
+
613
+ if (!is_overload_present.has_value())
614
+ {
615
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperation", L"IsOpcodeSupported", 1);
616
+ }
617
+
618
+ if (!is_overload_present.value())
528
619
  {
529
620
  py::set_arg_count_version_error(1);
530
621
  return nullptr;
@@ -627,7 +718,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
627
718
  {
628
719
  try
629
720
  {
630
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"GetOperand", 1))
721
+ static std::optional<bool> is_overload_present{};
722
+
723
+ if (!is_overload_present.has_value())
724
+ {
725
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"GetOperand", 1);
726
+ }
727
+
728
+ if (!is_overload_present.value())
631
729
  {
632
730
  py::set_arg_count_version_error(1);
633
731
  return nullptr;
@@ -658,7 +756,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
658
756
  {
659
757
  try
660
758
  {
661
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"SetOperand", 2))
759
+ static std::optional<bool> is_overload_present{};
760
+
761
+ if (!is_overload_present.has_value())
762
+ {
763
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"SetOperand", 2);
764
+ }
765
+
766
+ if (!is_overload_present.value())
662
767
  {
663
768
  py::set_arg_count_version_error(2);
664
769
  return nullptr;
@@ -680,7 +785,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
680
785
  {
681
786
  try
682
787
  {
683
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"SetOperand", 3))
788
+ static std::optional<bool> is_overload_present{};
789
+
790
+ if (!is_overload_present.has_value())
791
+ {
792
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.CoreAutomationRemoteOperationContext", L"SetOperand", 3);
793
+ }
794
+
795
+ if (!is_overload_present.value())
684
796
  {
685
797
  py::set_arg_count_version_error(3);
686
798
  return nullptr;
@@ -774,7 +886,7 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
774
886
  {
775
887
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
776
888
 
777
- winrt::Windows::UI::UIAutomation::Core::RemoteAutomationClientSession instance{ param0 };
889
+ winrt::Windows::UI::UIAutomation::Core::RemoteAutomationClientSession instance{param0};
778
890
  return py::wrap(instance, type);
779
891
  }
780
892
  catch (...)
@@ -790,7 +902,7 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
790
902
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
791
903
  auto param1 = py::convert_to<winrt::guid>(args, 1);
792
904
 
793
- winrt::Windows::UI::UIAutomation::Core::RemoteAutomationClientSession instance{ param0, param1 };
905
+ winrt::Windows::UI::UIAutomation::Core::RemoteAutomationClientSession instance{param0, param1};
794
906
  return py::wrap(instance, type);
795
907
  }
796
908
  catch (...)
@@ -822,7 +934,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
822
934
  {
823
935
  try
824
936
  {
825
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"CreateWindowAsync", 3))
937
+ static std::optional<bool> is_overload_present{};
938
+
939
+ if (!is_overload_present.has_value())
940
+ {
941
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"CreateWindowAsync", 3);
942
+ }
943
+
944
+ if (!is_overload_present.value())
826
945
  {
827
946
  py::set_arg_count_version_error(3);
828
947
  return nullptr;
@@ -855,7 +974,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
855
974
  {
856
975
  try
857
976
  {
858
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Start", 0))
977
+ static std::optional<bool> is_overload_present{};
978
+
979
+ if (!is_overload_present.has_value())
980
+ {
981
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Start", 0);
982
+ }
983
+
984
+ if (!is_overload_present.value())
859
985
  {
860
986
  py::set_arg_count_version_error(0);
861
987
  return nullptr;
@@ -885,7 +1011,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
885
1011
  {
886
1012
  try
887
1013
  {
888
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Stop", 0))
1014
+ static std::optional<bool> is_overload_present{};
1015
+
1016
+ if (!is_overload_present.has_value())
1017
+ {
1018
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Stop", 0);
1019
+ }
1020
+
1021
+ if (!is_overload_present.value())
889
1022
  {
890
1023
  py::set_arg_count_version_error(0);
891
1024
  return nullptr;
@@ -911,7 +1044,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
911
1044
  {
912
1045
  try
913
1046
  {
914
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"SessionId"))
1047
+ static std::optional<bool> is_property_present{};
1048
+
1049
+ if (!is_property_present.has_value())
1050
+ {
1051
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"SessionId");
1052
+ }
1053
+
1054
+ if (!is_property_present.value())
915
1055
  {
916
1056
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
917
1057
  return nullptr;
@@ -930,7 +1070,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
930
1070
  {
931
1071
  try
932
1072
  {
933
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"ConnectionRequested"))
1073
+ static std::optional<bool> is_event_present{};
1074
+
1075
+ if (!is_event_present.has_value())
1076
+ {
1077
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"ConnectionRequested");
1078
+ }
1079
+
1080
+ if (!is_event_present.value())
934
1081
  {
935
1082
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
936
1083
  return nullptr;
@@ -951,7 +1098,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
951
1098
  {
952
1099
  try
953
1100
  {
954
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"ConnectionRequested"))
1101
+ static std::optional<bool> is_event_present{};
1102
+
1103
+ if (!is_event_present.has_value())
1104
+ {
1105
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"ConnectionRequested");
1106
+ }
1107
+
1108
+ if (!is_event_present.value())
955
1109
  {
956
1110
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
957
1111
  return nullptr;
@@ -973,7 +1127,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
973
1127
  {
974
1128
  try
975
1129
  {
976
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Disconnected"))
1130
+ static std::optional<bool> is_event_present{};
1131
+
1132
+ if (!is_event_present.has_value())
1133
+ {
1134
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Disconnected");
1135
+ }
1136
+
1137
+ if (!is_event_present.value())
977
1138
  {
978
1139
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
979
1140
  return nullptr;
@@ -994,7 +1155,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
994
1155
  {
995
1156
  try
996
1157
  {
997
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Disconnected"))
1158
+ static std::optional<bool> is_event_present{};
1159
+
1160
+ if (!is_event_present.has_value())
1161
+ {
1162
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationClientSession", L"Disconnected");
1163
+ }
1164
+
1165
+ if (!is_event_present.value())
998
1166
  {
999
1167
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1000
1168
  return nullptr;
@@ -1090,7 +1258,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1090
1258
  {
1091
1259
  try
1092
1260
  {
1093
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationConnectionRequestedEventArgs", L"LocalPipeName"))
1261
+ static std::optional<bool> is_property_present{};
1262
+
1263
+ if (!is_property_present.has_value())
1264
+ {
1265
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationConnectionRequestedEventArgs", L"LocalPipeName");
1266
+ }
1267
+
1268
+ if (!is_property_present.value())
1094
1269
  {
1095
1270
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1096
1271
  return nullptr;
@@ -1109,7 +1284,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1109
1284
  {
1110
1285
  try
1111
1286
  {
1112
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationConnectionRequestedEventArgs", L"RemoteProcessId"))
1287
+ static std::optional<bool> is_property_present{};
1288
+
1289
+ if (!is_property_present.has_value())
1290
+ {
1291
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationConnectionRequestedEventArgs", L"RemoteProcessId");
1292
+ }
1293
+
1294
+ if (!is_property_present.value())
1113
1295
  {
1114
1296
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1115
1297
  return nullptr;
@@ -1196,7 +1378,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1196
1378
  {
1197
1379
  try
1198
1380
  {
1199
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationDisconnectedEventArgs", L"LocalPipeName"))
1381
+ static std::optional<bool> is_property_present{};
1382
+
1383
+ if (!is_property_present.has_value())
1384
+ {
1385
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationDisconnectedEventArgs", L"LocalPipeName");
1386
+ }
1387
+
1388
+ if (!is_property_present.value())
1200
1389
  {
1201
1390
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1202
1391
  return nullptr;
@@ -1278,7 +1467,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1278
1467
  {
1279
1468
  try
1280
1469
  {
1281
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationServer", L"ReportSession", 1))
1470
+ static std::optional<bool> is_overload_present{};
1471
+
1472
+ if (!is_overload_present.has_value())
1473
+ {
1474
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationServer", L"ReportSession", 1);
1475
+ }
1476
+
1477
+ if (!is_overload_present.value())
1282
1478
  {
1283
1479
  py::set_arg_count_version_error(1);
1284
1480
  return nullptr;
@@ -1375,7 +1571,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1375
1571
  {
1376
1572
  try
1377
1573
  {
1378
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationWindow", L"UnregisterAsync", 0))
1574
+ static std::optional<bool> is_overload_present{};
1575
+
1576
+ if (!is_overload_present.has_value())
1577
+ {
1578
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationWindow", L"UnregisterAsync", 0);
1579
+ }
1580
+
1581
+ if (!is_overload_present.value())
1379
1582
  {
1380
1583
  py::set_arg_count_version_error(0);
1381
1584
  return nullptr;
@@ -1400,7 +1603,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1400
1603
  {
1401
1604
  try
1402
1605
  {
1403
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationWindow", L"AutomationProvider"))
1606
+ static std::optional<bool> is_property_present{};
1607
+
1608
+ if (!is_property_present.has_value())
1609
+ {
1610
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.RemoteAutomationWindow", L"AutomationProvider");
1611
+ }
1612
+
1613
+ if (!is_property_present.value())
1404
1614
  {
1405
1615
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1406
1616
  return nullptr;
@@ -1487,7 +1697,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1487
1697
  {
1488
1698
  try
1489
1699
  {
1490
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationConnectionBoundObjectProvider", L"IsComThreadingRequired"))
1700
+ static std::optional<bool> is_property_present{};
1701
+
1702
+ if (!is_property_present.has_value())
1703
+ {
1704
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationConnectionBoundObjectProvider", L"IsComThreadingRequired");
1705
+ }
1706
+
1707
+ if (!is_property_present.value())
1491
1708
  {
1492
1709
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1493
1710
  return nullptr;
@@ -1577,7 +1794,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1577
1794
  {
1578
1795
  try
1579
1796
  {
1580
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationRemoteOperationExtensionProvider", L"CallExtension", 3))
1797
+ static std::optional<bool> is_overload_present{};
1798
+
1799
+ if (!is_overload_present.has_value())
1800
+ {
1801
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationRemoteOperationExtensionProvider", L"CallExtension", 3);
1802
+ }
1803
+
1804
+ if (!is_overload_present.value())
1581
1805
  {
1582
1806
  py::set_arg_count_version_error(3);
1583
1807
  return nullptr;
@@ -1611,7 +1835,14 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1611
1835
  {
1612
1836
  try
1613
1837
  {
1614
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationRemoteOperationExtensionProvider", L"IsExtensionSupported", 1))
1838
+ static std::optional<bool> is_overload_present{};
1839
+
1840
+ if (!is_overload_present.has_value())
1841
+ {
1842
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.UIAutomation.Core.ICoreAutomationRemoteOperationExtensionProvider", L"IsExtensionSupported", 1);
1843
+ }
1844
+
1845
+ if (!is_overload_present.value())
1615
1846
  {
1616
1847
  py::set_arg_count_version_error(1);
1617
1848
  return nullptr;
@@ -1828,6 +2059,17 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1828
2059
  }
1829
2060
  }
1830
2061
 
2062
+ static PyObject* _repr_AutomationAnnotationTypeRegistration(PyObject* self) noexcept
2063
+ {
2064
+ py::pyobj_handle LocalId{PyObject_GetAttrString(self, "local_id")};
2065
+ if (!LocalId)
2066
+ {
2067
+ return nullptr;
2068
+ }
2069
+
2070
+ return PyUnicode_FromFormat("AutomationAnnotationTypeRegistration(local_id=%R)", LocalId.get());
2071
+ }
2072
+
1831
2073
  static PyType_Slot _type_slots_AutomationAnnotationTypeRegistration[] = {
1832
2074
  { Py_tp_new, reinterpret_cast<void*>(_new_AutomationAnnotationTypeRegistration) },
1833
2075
  { Py_tp_init, reinterpret_cast<void*>(_init_AutomationAnnotationTypeRegistration) },
@@ -1835,6 +2077,7 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1835
2077
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AutomationAnnotationTypeRegistration) },
1836
2078
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AutomationAnnotationTypeRegistration) },
1837
2079
  { Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_AutomationAnnotationTypeRegistration) },
2080
+ { Py_tp_repr, reinterpret_cast<void*>(_repr_AutomationAnnotationTypeRegistration) },
1838
2081
  { }
1839
2082
  };
1840
2083
 
@@ -1988,6 +2231,17 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1988
2231
  }
1989
2232
  }
1990
2233
 
2234
+ static PyObject* _repr_AutomationRemoteOperationOperandId(PyObject* self) noexcept
2235
+ {
2236
+ py::pyobj_handle Value{PyObject_GetAttrString(self, "value")};
2237
+ if (!Value)
2238
+ {
2239
+ return nullptr;
2240
+ }
2241
+
2242
+ return PyUnicode_FromFormat("AutomationRemoteOperationOperandId(value=%R)", Value.get());
2243
+ }
2244
+
1991
2245
  static PyType_Slot _type_slots_AutomationRemoteOperationOperandId[] = {
1992
2246
  { Py_tp_new, reinterpret_cast<void*>(_new_AutomationRemoteOperationOperandId) },
1993
2247
  { Py_tp_init, reinterpret_cast<void*>(_init_AutomationRemoteOperationOperandId) },
@@ -1995,6 +2249,7 @@ namespace py::cpp::Windows::UI::UIAutomation::Core
1995
2249
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AutomationRemoteOperationOperandId) },
1996
2250
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AutomationRemoteOperationOperandId) },
1997
2251
  { Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_AutomationRemoteOperationOperandId) },
2252
+ { Py_tp_repr, reinterpret_cast<void*>(_repr_AutomationRemoteOperationOperandId) },
1998
2253
  { }
1999
2254
  };
2000
2255
 
@@ -2050,7 +2305,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_uiautomation_core(void) noexcept
2050
2305
  return nullptr;
2051
2306
  }
2052
2307
 
2053
- if (py::register_python_type(module.get(), &type_spec_AutomationRemoteOperationResult, object_bases.get(), nullptr) == -1)
2308
+ py::pytype_handle AutomationRemoteOperationResult_type{py::register_python_type(module.get(), &type_spec_AutomationRemoteOperationResult, object_bases.get(), nullptr)};
2309
+ if (!AutomationRemoteOperationResult_type)
2054
2310
  {
2055
2311
  return nullptr;
2056
2312
  }
@@ -2061,32 +2317,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_uiautomation_core(void) noexcept
2061
2317
  return nullptr;
2062
2318
  }
2063
2319
 
2064
- if (py::register_python_type(module.get(), &type_spec_CoreAutomationRegistrar, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreAutomationRegistrar_Static.get())) == -1)
2320
+ py::pytype_handle CoreAutomationRegistrar_type{py::register_python_type(module.get(), &type_spec_CoreAutomationRegistrar, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreAutomationRegistrar_Static.get()))};
2321
+ if (!CoreAutomationRegistrar_type)
2065
2322
  {
2066
2323
  return nullptr;
2067
2324
  }
2068
2325
 
2069
- if (py::register_python_type(module.get(), &type_spec_CoreAutomationRemoteOperation, object_bases.get(), nullptr) == -1)
2326
+ py::pytype_handle CoreAutomationRemoteOperation_type{py::register_python_type(module.get(), &type_spec_CoreAutomationRemoteOperation, object_bases.get(), nullptr)};
2327
+ if (!CoreAutomationRemoteOperation_type)
2070
2328
  {
2071
2329
  return nullptr;
2072
2330
  }
2073
2331
 
2074
- if (py::register_python_type(module.get(), &type_spec_CoreAutomationRemoteOperationContext, object_bases.get(), nullptr) == -1)
2332
+ py::pytype_handle CoreAutomationRemoteOperationContext_type{py::register_python_type(module.get(), &type_spec_CoreAutomationRemoteOperationContext, object_bases.get(), nullptr)};
2333
+ if (!CoreAutomationRemoteOperationContext_type)
2075
2334
  {
2076
2335
  return nullptr;
2077
2336
  }
2078
2337
 
2079
- if (py::register_python_type(module.get(), &type_spec_RemoteAutomationClientSession, object_bases.get(), nullptr) == -1)
2338
+ py::pytype_handle RemoteAutomationClientSession_type{py::register_python_type(module.get(), &type_spec_RemoteAutomationClientSession, object_bases.get(), nullptr)};
2339
+ if (!RemoteAutomationClientSession_type)
2080
2340
  {
2081
2341
  return nullptr;
2082
2342
  }
2083
2343
 
2084
- if (py::register_python_type(module.get(), &type_spec_RemoteAutomationConnectionRequestedEventArgs, object_bases.get(), nullptr) == -1)
2344
+ py::pytype_handle RemoteAutomationConnectionRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_RemoteAutomationConnectionRequestedEventArgs, object_bases.get(), nullptr)};
2345
+ if (!RemoteAutomationConnectionRequestedEventArgs_type)
2085
2346
  {
2086
2347
  return nullptr;
2087
2348
  }
2088
2349
 
2089
- if (py::register_python_type(module.get(), &type_spec_RemoteAutomationDisconnectedEventArgs, object_bases.get(), nullptr) == -1)
2350
+ py::pytype_handle RemoteAutomationDisconnectedEventArgs_type{py::register_python_type(module.get(), &type_spec_RemoteAutomationDisconnectedEventArgs, object_bases.get(), nullptr)};
2351
+ if (!RemoteAutomationDisconnectedEventArgs_type)
2090
2352
  {
2091
2353
  return nullptr;
2092
2354
  }
@@ -2097,32 +2359,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_uiautomation_core(void) noexcept
2097
2359
  return nullptr;
2098
2360
  }
2099
2361
 
2100
- if (py::register_python_type(module.get(), &type_spec_RemoteAutomationServer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteAutomationServer_Static.get())) == -1)
2362
+ py::pytype_handle RemoteAutomationServer_type{py::register_python_type(module.get(), &type_spec_RemoteAutomationServer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_RemoteAutomationServer_Static.get()))};
2363
+ if (!RemoteAutomationServer_type)
2101
2364
  {
2102
2365
  return nullptr;
2103
2366
  }
2104
2367
 
2105
- if (py::register_python_type(module.get(), &type_spec_RemoteAutomationWindow, object_bases.get(), nullptr) == -1)
2368
+ py::pytype_handle RemoteAutomationWindow_type{py::register_python_type(module.get(), &type_spec_RemoteAutomationWindow, object_bases.get(), nullptr)};
2369
+ if (!RemoteAutomationWindow_type)
2106
2370
  {
2107
2371
  return nullptr;
2108
2372
  }
2109
2373
 
2110
- if (py::register_python_type(module.get(), &type_spec_ICoreAutomationConnectionBoundObjectProvider, object_bases.get(), nullptr) == -1)
2374
+ py::pytype_handle ICoreAutomationConnectionBoundObjectProvider_type{py::register_python_type(module.get(), &type_spec_ICoreAutomationConnectionBoundObjectProvider, object_bases.get(), nullptr)};
2375
+ if (!ICoreAutomationConnectionBoundObjectProvider_type)
2111
2376
  {
2112
2377
  return nullptr;
2113
2378
  }
2114
2379
 
2115
- if (py::register_python_type(module.get(), &type_spec_ICoreAutomationRemoteOperationExtensionProvider, object_bases.get(), nullptr) == -1)
2380
+ py::pytype_handle ICoreAutomationRemoteOperationExtensionProvider_type{py::register_python_type(module.get(), &type_spec_ICoreAutomationRemoteOperationExtensionProvider, object_bases.get(), nullptr)};
2381
+ if (!ICoreAutomationRemoteOperationExtensionProvider_type)
2116
2382
  {
2117
2383
  return nullptr;
2118
2384
  }
2119
2385
 
2120
- if (py::register_python_type(module.get(), &type_spec_AutomationAnnotationTypeRegistration, nullptr, nullptr) == -1)
2386
+ py::pytype_handle AutomationAnnotationTypeRegistration_type{py::register_python_type(module.get(), &type_spec_AutomationAnnotationTypeRegistration, nullptr, nullptr)};
2387
+ if (!AutomationAnnotationTypeRegistration_type)
2121
2388
  {
2122
2389
  return nullptr;
2123
2390
  }
2124
2391
 
2125
- if (py::register_python_type(module.get(), &type_spec_AutomationRemoteOperationOperandId, nullptr, nullptr) == -1)
2392
+ py::pytype_handle AutomationRemoteOperationOperandId_type{py::register_python_type(module.get(), &type_spec_AutomationRemoteOperationOperandId, nullptr, nullptr)};
2393
+ if (!AutomationRemoteOperationOperandId_type)
2126
2394
  {
2127
2395
  return nullptr;
2128
2396
  }
@@ -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
@@ -20,15 +20,11 @@ Self = typing.TypeVar('Self')
20
20
  class AutomationAnnotationTypeRegistration:
21
21
  local_id: winrt.system.Int32
22
22
  def __init__(self, local_id: winrt.system.Int32) -> None: ...
23
- def __eq__(self, other: object, /) -> bool: ...
24
- def __ne__(self, other: object, /) -> bool: ...
25
23
 
26
24
  @typing.final
27
25
  class AutomationRemoteOperationOperandId:
28
26
  value: winrt.system.Int32
29
27
  def __init__(self, value: winrt.system.Int32) -> None: ...
30
- def __eq__(self, other: object, /) -> bool: ...
31
- def __ne__(self, other: object, /) -> bool: ...
32
28
 
33
29
  @typing.final
34
30
  class AutomationRemoteOperationResult(winrt.system.Object):
@@ -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.UI.UIAutomation.Core
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.UIAutomation[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.UIAutomation[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.UI.UIAutomation[all]==2.2.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.UI.UIAutomation[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.UI.UIAutomation[all]==2.1.0