winrt-Windows.ApplicationModel.Contacts.Provider 2.3.0__tar.gz → 3.1.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 (21) hide show
  1. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/PKG-INFO +8 -8
  2. winrt_windows_applicationmodel_contacts_provider-3.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/py.Windows.ApplicationModel.Contacts.Provider.cpp +68 -28
  4. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_applicationmodel_contacts_provider-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_contacts_provider-3.1.0/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +52 -0
  9. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt/windows/applicationmodel/contacts/provider/__init__.py +5 -4
  10. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/PKG-INFO +8 -8
  11. winrt_windows_applicationmodel_contacts_provider-3.1.0/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +6 -0
  12. winrt_windows_applicationmodel_contacts_provider-2.3.0/all-requirements.txt +0 -5
  13. winrt_windows_applicationmodel_contacts_provider-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_applicationmodel_contacts_provider-2.3.0/winrt/_winrt_windows_applicationmodel_contacts_provider.pyi +0 -45
  15. winrt_windows_applicationmodel_contacts_provider-2.3.0/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/requires.txt +0 -6
  16. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/README.md +0 -0
  17. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/setup.cfg +0 -0
  18. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt/windows/applicationmodel/contacts/provider/py.typed +0 -0
  19. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_applicationmodel_contacts_provider-2.3.0 → winrt_windows_applicationmodel_contacts_provider-3.1.0}/winrt_Windows.ApplicationModel.Contacts.Provider.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Contacts.Provider
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.ApplicationModel.Contacts[all]==3.1.0
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Contacts.Provider.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
23
23
 
24
24
  static PyObject* ContactPickerUI_AddContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
44
44
 
45
45
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 0);
46
46
 
47
- return py::convert(self->obj.AddContact(param0));
47
+ return py::convert([&]()
48
+ {
49
+ auto _gil = release_gil();
50
+ return self->obj.AddContact(param0);
51
+ }());
48
52
  }
49
53
  catch (...)
50
54
  {
@@ -72,7 +76,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
72
76
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
73
77
  auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Contacts::Contact>(args, 1);
74
78
 
75
- return py::convert(self->obj.AddContact(param0, param1));
79
+ return py::convert([&]()
80
+ {
81
+ auto _gil = release_gil();
82
+ return self->obj.AddContact(param0, param1);
83
+ }());
76
84
  }
77
85
  catch (...)
78
86
  {
@@ -89,7 +97,7 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
89
97
 
90
98
  static PyObject* ContactPickerUI_ContainsContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
91
99
  {
92
- auto arg_count = PyTuple_Size(args);
100
+ auto arg_count = PyTuple_GET_SIZE(args);
93
101
 
94
102
  if (arg_count == 1)
95
103
  {
@@ -110,7 +118,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
110
118
 
111
119
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
112
120
 
113
- return py::convert(self->obj.ContainsContact(param0));
121
+ return py::convert([&]()
122
+ {
123
+ auto _gil = release_gil();
124
+ return self->obj.ContainsContact(param0);
125
+ }());
114
126
  }
115
127
  catch (...)
116
128
  {
@@ -127,7 +139,7 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
127
139
 
128
140
  static PyObject* ContactPickerUI_RemoveContact(py::wrapper::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI* self, PyObject* args) noexcept
129
141
  {
130
- auto arg_count = PyTuple_Size(args);
142
+ auto arg_count = PyTuple_GET_SIZE(args);
131
143
 
132
144
  if (arg_count == 1)
133
145
  {
@@ -148,7 +160,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
148
160
 
149
161
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
150
162
 
151
- self->obj.RemoveContact(param0);
163
+ {
164
+ auto _gil = release_gil();
165
+ self->obj.RemoveContact(param0);
166
+ }
167
+
152
168
  Py_RETURN_NONE;
153
169
  }
154
170
  catch (...)
@@ -181,7 +197,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
181
197
  return nullptr;
182
198
  }
183
199
 
184
- return py::convert(self->obj.DesiredFields());
200
+ return py::convert([&]()
201
+ {
202
+ auto _gil = release_gil();
203
+ return self->obj.DesiredFields();
204
+ }());
185
205
  }
186
206
  catch (...)
187
207
  {
@@ -207,7 +227,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
207
227
  return nullptr;
208
228
  }
209
229
 
210
- return py::convert(self->obj.SelectionMode());
230
+ return py::convert([&]()
231
+ {
232
+ auto _gil = release_gil();
233
+ return self->obj.SelectionMode();
234
+ }());
211
235
  }
212
236
  catch (...)
213
237
  {
@@ -233,7 +257,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
233
257
  return nullptr;
234
258
  }
235
259
 
236
- return py::convert(self->obj.DesiredFieldsWithContactFieldType());
260
+ return py::convert([&]()
261
+ {
262
+ auto _gil = release_gil();
263
+ return self->obj.DesiredFieldsWithContactFieldType();
264
+ }());
237
265
  }
238
266
  catch (...)
239
267
  {
@@ -261,7 +289,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
261
289
 
262
290
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Contacts::Provider::ContactPickerUI, winrt::Windows::ApplicationModel::Contacts::Provider::ContactRemovedEventArgs>>(arg);
263
291
 
264
- return py::convert(self->obj.ContactRemoved(param0));
292
+ return py::convert([&]()
293
+ {
294
+ auto _gil = release_gil();
295
+ return self->obj.ContactRemoved(param0);
296
+ }());
265
297
  }
266
298
  catch (...)
267
299
  {
@@ -289,7 +321,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
289
321
 
290
322
  auto param0 = py::convert_to<winrt::event_token>(arg);
291
323
 
292
- self->obj.ContactRemoved(param0);
324
+ {
325
+ auto _gil = release_gil();
326
+ self->obj.ContactRemoved(param0);
327
+ }
328
+
293
329
  Py_RETURN_NONE;
294
330
  }
295
331
  catch (...)
@@ -331,23 +367,20 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
331
367
  { "remove_contact_removed", reinterpret_cast<PyCFunction>(ContactPickerUI_remove_ContactRemoved), METH_O, nullptr },
332
368
  { "_assign_array_", _assign_array_ContactPickerUI, METH_O | METH_STATIC, nullptr },
333
369
  { "_from", reinterpret_cast<PyCFunction>(_from_ContactPickerUI), METH_O | METH_STATIC, nullptr },
334
- { }
335
- };
370
+ { }};
336
371
 
337
372
  static PyGetSetDef _getset_ContactPickerUI[] = {
338
373
  { "desired_fields", reinterpret_cast<getter>(ContactPickerUI_get_DesiredFields), nullptr, nullptr, nullptr },
339
374
  { "selection_mode", reinterpret_cast<getter>(ContactPickerUI_get_SelectionMode), nullptr, nullptr, nullptr },
340
375
  { "desired_fields_with_contact_field_type", reinterpret_cast<getter>(ContactPickerUI_get_DesiredFieldsWithContactFieldType), nullptr, nullptr, nullptr },
341
- { }
342
- };
376
+ { }};
343
377
 
344
378
  static PyType_Slot _type_slots_ContactPickerUI[] = {
345
379
  { Py_tp_new, reinterpret_cast<void*>(_new_ContactPickerUI) },
346
380
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactPickerUI) },
347
381
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ContactPickerUI) },
348
382
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ContactPickerUI) },
349
- { }
350
- };
383
+ { }};
351
384
 
352
385
  static PyType_Spec type_spec_ContactPickerUI = {
353
386
  "winrt._winrt_windows_applicationmodel_contacts_provider.ContactPickerUI",
@@ -390,7 +423,11 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
390
423
  return nullptr;
391
424
  }
392
425
 
393
- return py::convert(self->obj.Id());
426
+ return py::convert([&]()
427
+ {
428
+ auto _gil = release_gil();
429
+ return self->obj.Id();
430
+ }());
394
431
  }
395
432
  catch (...)
396
433
  {
@@ -426,21 +463,18 @@ namespace py::cpp::Windows::ApplicationModel::Contacts::Provider
426
463
  static PyMethodDef _methods_ContactRemovedEventArgs[] = {
427
464
  { "_assign_array_", _assign_array_ContactRemovedEventArgs, METH_O | METH_STATIC, nullptr },
428
465
  { "_from", reinterpret_cast<PyCFunction>(_from_ContactRemovedEventArgs), METH_O | METH_STATIC, nullptr },
429
- { }
430
- };
466
+ { }};
431
467
 
432
468
  static PyGetSetDef _getset_ContactRemovedEventArgs[] = {
433
469
  { "id", reinterpret_cast<getter>(ContactRemovedEventArgs_get_Id), nullptr, nullptr, nullptr },
434
- { }
435
- };
470
+ { }};
436
471
 
437
472
  static PyType_Slot _type_slots_ContactRemovedEventArgs[] = {
438
473
  { Py_tp_new, reinterpret_cast<void*>(_new_ContactRemovedEventArgs) },
439
474
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ContactRemovedEventArgs) },
440
475
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ContactRemovedEventArgs) },
441
476
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ContactRemovedEventArgs) },
442
- { }
443
- };
477
+ { }};
444
478
 
445
479
  static PyType_Spec type_spec_ContactRemovedEventArgs = {
446
480
  "winrt._winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs",
@@ -481,6 +515,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) no
481
515
  return nullptr;
482
516
  }
483
517
 
518
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
519
+ if (!inspectable_meta_type)
520
+ {
521
+ return nullptr;
522
+ }
523
+
484
524
  auto object_type = py::get_object_type();
485
525
  if (!object_type)
486
526
  {
@@ -494,13 +534,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_contacts_provider(void) no
494
534
  return nullptr;
495
535
  }
496
536
 
497
- py::pytype_handle ContactPickerUI_type{py::register_python_type(module.get(), &type_spec_ContactPickerUI, object_bases.get(), nullptr)};
537
+ py::pytype_handle ContactPickerUI_type{py::register_python_type(module.get(), &type_spec_ContactPickerUI, object_bases.get(), inspectable_meta_type)};
498
538
  if (!ContactPickerUI_type)
499
539
  {
500
540
  return nullptr;
501
541
  }
502
542
 
503
- py::pytype_handle ContactRemovedEventArgs_type{py::register_python_type(module.get(), &type_spec_ContactRemovedEventArgs, object_bases.get(), nullptr)};
543
+ py::pytype_handle ContactRemovedEventArgs_type{py::register_python_type(module.get(), &type_spec_ContactRemovedEventArgs, object_bases.get(), inspectable_meta_type)};
504
544
  if (!ContactRemovedEventArgs_type)
505
545
  {
506
546
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.ApplicationModel.Contacts.Provider"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_applicationmodel_contacts_provider",
@@ -0,0 +1,52 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.applicationmodel.contacts as windows_applicationmodel_contacts
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+
16
+ from winrt.windows.applicationmodel.contacts.provider import AddContactResult
17
+
18
+ Self = typing.TypeVar('Self')
19
+
20
+ @typing.final
21
+ class ContactPickerUI(winrt.system.Object):
22
+ @typing.overload
23
+ # Windows.ApplicationModel.Contacts.Provider.AddContactResult Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::AddContact(Windows.ApplicationModel.Contacts.Contact)
24
+ def add_contact(self, contact: windows_applicationmodel_contacts.Contact, /) -> AddContactResult: ...
25
+ @typing.overload
26
+ # Windows.ApplicationModel.Contacts.Provider.AddContactResult Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::AddContact(System.String,Windows.ApplicationModel.Contacts.Contact)
27
+ # @deprecated("AddContact may be altered or unavailable for releases after Windows 8.1. Instead, use AddContact without the ID.")
28
+ def add_contact(self, id: str, contact: windows_applicationmodel_contacts.Contact, /) -> AddContactResult: ...
29
+ # System.Boolean Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::ContainsContact(System.String)
30
+ def contains_contact(self, id: str, /) -> bool: ...
31
+ # System.Void Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::RemoveContact(System.String)
32
+ def remove_contact(self, id: str, /) -> None: ...
33
+ # Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::add_ContactRemoved(Windows.Foundation.TypedEventHandler`2<Windows.ApplicationModel.Contacts.Provider.ContactPickerUI,Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs>)
34
+ def add_contact_removed(self, handler: windows_foundation.TypedEventHandler[ContactPickerUI, ContactRemovedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
35
+ # System.Void Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::remove_ContactRemoved(Windows.Foundation.EventRegistrationToken)
36
+ def remove_contact_removed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
37
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::get_DesiredFields()
38
+ @_property
39
+ def desired_fields(self) -> typing.Sequence[str]: ...
40
+ # Windows.ApplicationModel.Contacts.ContactSelectionMode Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::get_SelectionMode()
41
+ @_property
42
+ def selection_mode(self) -> windows_applicationmodel_contacts.ContactSelectionMode: ...
43
+ # Windows.Foundation.Collections.IVector`1<Windows.ApplicationModel.Contacts.ContactFieldType> Windows.ApplicationModel.Contacts.Provider.ContactPickerUI::get_DesiredFieldsWithContactFieldType()
44
+ @_property
45
+ def desired_fields_with_contact_field_type(self) -> typing.MutableSequence[windows_applicationmodel_contacts.ContactFieldType]: ...
46
+
47
+ @typing.final
48
+ class ContactRemovedEventArgs(winrt.system.Object):
49
+ # System.String Windows.ApplicationModel.Contacts.Provider.ContactRemovedEventArgs::get_Id()
50
+ @_property
51
+ def id(self) -> str: ...
52
+
@@ -1,9 +1,12 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_applicationmodel_contacts_provider
6
+ from winrt._winrt_windows_applicationmodel_contacts_provider import (
7
+ ContactPickerUI,
8
+ ContactRemovedEventArgs,
9
+ )
7
10
 
8
11
  __all__ = [
9
12
  "AddContactResult",
@@ -16,5 +19,3 @@ class AddContactResult(enum.IntEnum):
16
19
  ALREADY_ADDED = 1
17
20
  UNAVAILABLE = 2
18
21
 
19
- ContactPickerUI = _winrt_windows_applicationmodel_contacts_provider.ContactPickerUI
20
- ContactRemovedEventArgs = _winrt_windows_applicationmodel_contacts_provider.ContactRemovedEventArgs
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Contacts.Provider
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Contacts[all]==3.1.0
5
+ winrt-Windows.Foundation[all]==3.1.0
6
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.ApplicationModel.Contacts[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
@@ -1,45 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.applicationmodel.contacts as windows_applicationmodel_contacts
13
- import winrt.windows.foundation as windows_foundation
14
- import winrt.windows.foundation.collections as windows_foundation_collections
15
-
16
- from winrt.windows.applicationmodel.contacts.provider import AddContactResult
17
-
18
- Self = typing.TypeVar('Self')
19
-
20
- @typing.final
21
- class ContactPickerUI(winrt.system.Object):
22
- @staticmethod
23
- def _from(obj: winrt.system.Object, /) -> ContactPickerUI: ...
24
- @typing.overload
25
- def add_contact(self, contact: typing.Optional[windows_applicationmodel_contacts.Contact], /) -> AddContactResult: ...
26
- @typing.overload
27
- def add_contact(self, id: str, contact: typing.Optional[windows_applicationmodel_contacts.Contact], /) -> AddContactResult: ...
28
- def contains_contact(self, id: str, /) -> bool: ...
29
- def remove_contact(self, id: str, /) -> None: ...
30
- def add_contact_removed(self, handler: windows_foundation.TypedEventHandler[ContactPickerUI, ContactRemovedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
31
- def remove_contact_removed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
32
- @_property
33
- def desired_fields(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
34
- @_property
35
- def selection_mode(self) -> windows_applicationmodel_contacts.ContactSelectionMode: ...
36
- @_property
37
- def desired_fields_with_contact_field_type(self) -> typing.Optional[windows_foundation_collections.IVector[windows_applicationmodel_contacts.ContactFieldType]]: ...
38
-
39
- @typing.final
40
- class ContactRemovedEventArgs(winrt.system.Object):
41
- @staticmethod
42
- def _from(obj: winrt.system.Object, /) -> ContactRemovedEventArgs: ...
43
- @_property
44
- def id(self) -> str: ...
45
-
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Contacts[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0
6
- winrt-Windows.Foundation.Collections[all]==2.3.0