winrt-Windows.System.Threading 2.0.0b2__tar.gz → 2.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.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/PKG-INFO +3 -1
  2. winrt_windows_system_threading-2.1.0/all-requirements.txt +3 -0
  3. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/py.Windows.System.Threading.cpp +80 -88
  4. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_system_threading-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_system_threading-2.1.0/setup.py +31 -0
  8. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt/_winrt_windows_system_threading.pyi +6 -7
  9. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt/windows/system/threading/__init__.py +6 -3
  10. winrt_windows_system_threading-2.1.0/winrt/windows/system/threading/py.typed +0 -0
  11. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt_Windows.System.Threading.egg-info/PKG-INFO +3 -1
  12. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt_Windows.System.Threading.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_system_threading-2.1.0/winrt_Windows.System.Threading.egg-info/requires.txt +4 -0
  14. winrt-Windows.System.Threading-2.0.0b2/all-requirements.txt +0 -3
  15. winrt-Windows.System.Threading-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.System.Threading-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.System.Threading-2.0.0b2/winrt_Windows.System.Threading.egg-info/requires.txt +0 -4
  18. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/README.md +0 -0
  19. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt_Windows.System.Threading.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.System.Threading-2.0.0b2 → winrt_windows_system_threading-2.1.0}/winrt_Windows.System.Threading.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Threading
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -0,0 +1,3 @@
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
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.System.Threading.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::Threading
7
6
  {
8
7
  // ----- ThreadPool class --------------------
@@ -20,14 +19,14 @@ namespace py::cpp::Windows::System::Threading
20
19
 
21
20
  if (arg_count == 1)
22
21
  {
23
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 1))
24
- {
25
- py::set_arg_count_version_error(1);
26
- return nullptr;
27
- }
28
-
29
22
  try
30
23
  {
24
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 1))
25
+ {
26
+ py::set_arg_count_version_error(1);
27
+ return nullptr;
28
+ }
29
+
31
30
  auto param0 = py::convert_to<winrt::Windows::System::Threading::WorkItemHandler>(args, 0);
32
31
 
33
32
  return py::convert(winrt::Windows::System::Threading::ThreadPool::RunAsync(param0));
@@ -40,14 +39,14 @@ namespace py::cpp::Windows::System::Threading
40
39
  }
41
40
  else if (arg_count == 2)
42
41
  {
43
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 2))
44
- {
45
- py::set_arg_count_version_error(2);
46
- return nullptr;
47
- }
48
-
49
42
  try
50
43
  {
44
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 2))
45
+ {
46
+ py::set_arg_count_version_error(2);
47
+ return nullptr;
48
+ }
49
+
51
50
  auto param0 = py::convert_to<winrt::Windows::System::Threading::WorkItemHandler>(args, 0);
52
51
  auto param1 = py::convert_to<winrt::Windows::System::Threading::WorkItemPriority>(args, 1);
53
52
 
@@ -61,14 +60,14 @@ namespace py::cpp::Windows::System::Threading
61
60
  }
62
61
  else if (arg_count == 3)
63
62
  {
64
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 3))
65
- {
66
- py::set_arg_count_version_error(3);
67
- return nullptr;
68
- }
69
-
70
63
  try
71
64
  {
65
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 3))
66
+ {
67
+ py::set_arg_count_version_error(3);
68
+ return nullptr;
69
+ }
70
+
72
71
  auto param0 = py::convert_to<winrt::Windows::System::Threading::WorkItemHandler>(args, 0);
73
72
  auto param1 = py::convert_to<winrt::Windows::System::Threading::WorkItemPriority>(args, 1);
74
73
  auto param2 = py::convert_to<winrt::Windows::System::Threading::WorkItemOptions>(args, 2);
@@ -96,22 +95,19 @@ namespace py::cpp::Windows::System::Threading
96
95
  { }
97
96
  };
98
97
 
99
- static PyType_Slot _type_slots_ThreadPool[] =
100
- {
98
+ static PyType_Slot _type_slots_ThreadPool[] = {
101
99
  { Py_tp_new, reinterpret_cast<void*>(_new_ThreadPool) },
102
100
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ThreadPool) },
103
101
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ThreadPool) },
104
- { },
102
+ { }
105
103
  };
106
104
 
107
- static PyType_Spec type_spec_ThreadPool =
108
- {
105
+ static PyType_Spec type_spec_ThreadPool = {
109
106
  "winrt._winrt_windows_system_threading.ThreadPool",
110
107
  0,
111
108
  0,
112
109
  Py_TPFLAGS_DEFAULT,
113
- _type_slots_ThreadPool
114
- };
110
+ _type_slots_ThreadPool};
115
111
 
116
112
  static PyGetSetDef getset_ThreadPool_Static[] = {
117
113
  { }
@@ -162,14 +158,14 @@ namespace py::cpp::Windows::System::Threading
162
158
 
163
159
  if (arg_count == 0)
164
160
  {
165
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Cancel", 0))
166
- {
167
- py::set_arg_count_version_error(0);
168
- return nullptr;
169
- }
170
-
171
161
  try
172
162
  {
163
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Cancel", 0))
164
+ {
165
+ py::set_arg_count_version_error(0);
166
+ return nullptr;
167
+ }
168
+
173
169
  self->obj.Cancel();
174
170
  Py_RETURN_NONE;
175
171
  }
@@ -192,14 +188,14 @@ namespace py::cpp::Windows::System::Threading
192
188
 
193
189
  if (arg_count == 2)
194
190
  {
195
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 2))
196
- {
197
- py::set_arg_count_version_error(2);
198
- return nullptr;
199
- }
200
-
201
191
  try
202
192
  {
193
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 2))
194
+ {
195
+ py::set_arg_count_version_error(2);
196
+ return nullptr;
197
+ }
198
+
203
199
  auto param0 = py::convert_to<winrt::Windows::System::Threading::TimerElapsedHandler>(args, 0);
204
200
  auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
205
201
 
@@ -213,14 +209,14 @@ namespace py::cpp::Windows::System::Threading
213
209
  }
214
210
  else if (arg_count == 3)
215
211
  {
216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 3))
217
- {
218
- py::set_arg_count_version_error(3);
219
- return nullptr;
220
- }
221
-
222
212
  try
223
213
  {
214
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 3))
215
+ {
216
+ py::set_arg_count_version_error(3);
217
+ return nullptr;
218
+ }
219
+
224
220
  auto param0 = py::convert_to<winrt::Windows::System::Threading::TimerElapsedHandler>(args, 0);
225
221
  auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
226
222
  auto param2 = py::convert_to<winrt::Windows::System::Threading::TimerDestroyedHandler>(args, 2);
@@ -246,14 +242,14 @@ namespace py::cpp::Windows::System::Threading
246
242
 
247
243
  if (arg_count == 2)
248
244
  {
249
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 2))
250
- {
251
- py::set_arg_count_version_error(2);
252
- return nullptr;
253
- }
254
-
255
245
  try
256
246
  {
247
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 2))
248
+ {
249
+ py::set_arg_count_version_error(2);
250
+ return nullptr;
251
+ }
252
+
257
253
  auto param0 = py::convert_to<winrt::Windows::System::Threading::TimerElapsedHandler>(args, 0);
258
254
  auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
259
255
 
@@ -267,14 +263,14 @@ namespace py::cpp::Windows::System::Threading
267
263
  }
268
264
  else if (arg_count == 3)
269
265
  {
270
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 3))
271
- {
272
- py::set_arg_count_version_error(3);
273
- return nullptr;
274
- }
275
-
276
266
  try
277
267
  {
268
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 3))
269
+ {
270
+ py::set_arg_count_version_error(3);
271
+ return nullptr;
272
+ }
273
+
278
274
  auto param0 = py::convert_to<winrt::Windows::System::Threading::TimerElapsedHandler>(args, 0);
279
275
  auto param1 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 1);
280
276
  auto param2 = py::convert_to<winrt::Windows::System::Threading::TimerDestroyedHandler>(args, 2);
@@ -296,14 +292,14 @@ namespace py::cpp::Windows::System::Threading
296
292
 
297
293
  static PyObject* ThreadPoolTimer_get_Delay(py::wrapper::Windows::System::Threading::ThreadPoolTimer* self, void* /*unused*/) noexcept
298
294
  {
299
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Delay"))
300
- {
301
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
302
- return nullptr;
303
- }
304
-
305
295
  try
306
296
  {
297
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Delay"))
298
+ {
299
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
300
+ return nullptr;
301
+ }
302
+
307
303
  return py::convert(self->obj.Delay());
308
304
  }
309
305
  catch (...)
@@ -315,14 +311,14 @@ namespace py::cpp::Windows::System::Threading
315
311
 
316
312
  static PyObject* ThreadPoolTimer_get_Period(py::wrapper::Windows::System::Threading::ThreadPoolTimer* self, void* /*unused*/) noexcept
317
313
  {
318
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Period"))
319
- {
320
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
321
- return nullptr;
322
- }
323
-
324
314
  try
325
315
  {
316
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Period"))
317
+ {
318
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
319
+ return nullptr;
320
+ }
321
+
326
322
  return py::convert(self->obj.Period());
327
323
  }
328
324
  catch (...)
@@ -369,23 +365,20 @@ namespace py::cpp::Windows::System::Threading
369
365
  { }
370
366
  };
371
367
 
372
- static PyType_Slot _type_slots_ThreadPoolTimer[] =
373
- {
368
+ static PyType_Slot _type_slots_ThreadPoolTimer[] = {
374
369
  { Py_tp_new, reinterpret_cast<void*>(_new_ThreadPoolTimer) },
375
370
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ThreadPoolTimer) },
376
371
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ThreadPoolTimer) },
377
372
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ThreadPoolTimer) },
378
- { },
373
+ { }
379
374
  };
380
375
 
381
- static PyType_Spec type_spec_ThreadPoolTimer =
382
- {
376
+ static PyType_Spec type_spec_ThreadPoolTimer = {
383
377
  "winrt._winrt_windows_system_threading.ThreadPoolTimer",
384
378
  sizeof(py::wrapper::Windows::System::Threading::ThreadPoolTimer),
385
379
  0,
386
380
  Py_TPFLAGS_DEFAULT,
387
- _type_slots_ThreadPoolTimer
388
- };
381
+ _type_slots_ThreadPoolTimer};
389
382
 
390
383
  static PyGetSetDef getset_ThreadPoolTimer_Static[] = {
391
384
  { }
@@ -415,20 +408,19 @@ namespace py::cpp::Windows::System::Threading
415
408
  };
416
409
 
417
410
  // ----- Windows.System.Threading Initialization --------------------
418
- PyDoc_STRVAR(module_doc, "Windows::System::Threading");
419
411
 
412
+ PyDoc_STRVAR(module_doc, "Windows.System.Threading");
420
413
 
421
- static PyModuleDef module_def
422
- = {PyModuleDef_HEAD_INIT,
423
- "_winrt_windows_system_threading",
424
- module_doc,
425
- 0,
426
- nullptr,
427
- nullptr,
428
- nullptr,
429
- nullptr,
430
- nullptr};
431
-
414
+ static PyModuleDef module_def = {
415
+ PyModuleDef_HEAD_INIT,
416
+ "_winrt_windows_system_threading",
417
+ module_doc,
418
+ 0,
419
+ nullptr,
420
+ nullptr,
421
+ nullptr,
422
+ nullptr,
423
+ nullptr};
432
424
  } // py::cpp::Windows::System::Threading
433
425
 
434
426
  PyMODINIT_FUNC PyInit__winrt_windows_system_threading(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_system_threading",
26
+ sources=["py.Windows.System.Threading.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,7 +9,7 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
12
+ import winrt.windows.foundation as windows_foundation
13
13
 
14
14
  from winrt.windows.system.threading import WorkItemOptions, WorkItemPriority
15
15
  from winrt.windows.system.threading import TimerDestroyedHandler, TimerElapsedHandler, WorkItemHandler
@@ -19,16 +19,15 @@ Self = typing.TypeVar('Self')
19
19
  @typing.final
20
20
  class ThreadPool_Static(type):
21
21
  @typing.overload
22
- def run_async(cls, handler: typing.Optional[WorkItemHandler], /) -> winrt.windows.foundation.IAsyncAction: ...
22
+ def run_async(cls, handler: typing.Optional[WorkItemHandler], /) -> windows_foundation.IAsyncAction: ...
23
23
  @typing.overload
24
- def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, /) -> winrt.windows.foundation.IAsyncAction: ...
24
+ def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
25
25
  @typing.overload
26
- def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, options: WorkItemOptions, /) -> winrt.windows.foundation.IAsyncAction: ...
26
+ def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
27
27
 
28
28
  @typing.final
29
29
  class ThreadPool(winrt.system.Object, metaclass=ThreadPool_Static):
30
- @staticmethod
31
- def _from(obj: winrt.system.Object, /) -> ThreadPool: ...
30
+ pass
32
31
 
33
32
  @typing.final
34
33
  class ThreadPoolTimer_Static(type):
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
  import typing
@@ -7,6 +7,9 @@ import uuid as _uuid
7
7
  import winrt.system
8
8
  from winrt import _winrt_windows_system_threading
9
9
 
10
+ if typing.TYPE_CHECKING:
11
+ import winrt.windows.foundation as windows_foundation
12
+
10
13
  __all__ = [
11
14
  "WorkItemOptions",
12
15
  "WorkItemPriority",
@@ -18,7 +21,7 @@ __all__ = [
18
21
  ]
19
22
 
20
23
  class WorkItemOptions(enum.IntFlag):
21
- NONE = 0
24
+ NONE = 0x0
22
25
  TIME_SLICED = 0x1
23
26
 
24
27
  class WorkItemPriority(enum.IntEnum):
@@ -30,4 +33,4 @@ ThreadPool = _winrt_windows_system_threading.ThreadPool
30
33
  ThreadPoolTimer = _winrt_windows_system_threading.ThreadPoolTimer
31
34
  TimerDestroyedHandler = typing.Callable[[typing.Optional[ThreadPoolTimer]], None]
32
35
  TimerElapsedHandler = typing.Callable[[typing.Optional[ThreadPoolTimer]], None]
33
- WorkItemHandler = typing.Callable[[winrt.windows.foundation.IAsyncAction], None]
36
+ WorkItemHandler = typing.Callable[["windows_foundation.IAsyncAction"], None]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Threading
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_system_threading.pyi
9
9
  winrt/windows/system/threading/__init__.py
10
+ winrt/windows/system/threading/py.typed
10
11
  winrt_Windows.System.Threading.egg-info/PKG-INFO
11
12
  winrt_Windows.System.Threading.egg-info/SOURCES.txt
12
13
  winrt_Windows.System.Threading.egg-info/dependency_links.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
@@ -1 +0,0 @@
1
- 2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_system_threading",
10
- sources=["py.Windows.System.Threading.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2