winrt-Windows.System.Threading 2.3.0__cp313-cp313-win32.whl → 3.0.0__cp313-cp313-win32.whl

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.
@@ -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.0.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -17,36 +17,37 @@ from winrt.windows.system.threading import TimerDestroyedHandler, TimerElapsedHa
17
17
  Self = typing.TypeVar('Self')
18
18
 
19
19
  @typing.final
20
- class ThreadPool_Static(type):
21
- @typing.overload
22
- def run_async(cls, handler: typing.Optional[WorkItemHandler], /) -> windows_foundation.IAsyncAction: ...
23
- @typing.overload
24
- def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
25
- @typing.overload
26
- def run_async(cls, handler: typing.Optional[WorkItemHandler], priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
20
+ class ThreadPool_Static(winrt._winrt.IInspectable_Static):
21
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler)
22
+ def run_async(cls, handler: WorkItemHandler, /) -> windows_foundation.IAsyncAction: ...
23
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority,Windows.System.Threading.WorkItemOptions)
24
+ def run_with_priority_and_options_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
25
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority)
26
+ def run_with_priority_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
27
27
 
28
28
  @typing.final
29
29
  class ThreadPool(winrt.system.Object, metaclass=ThreadPool_Static):
30
30
  pass
31
31
 
32
32
  @typing.final
33
- class ThreadPoolTimer_Static(type):
34
- @typing.overload
35
- def create_periodic_timer(cls, handler: typing.Optional[TimerElapsedHandler], period: datetime.timedelta, /) -> typing.Optional[ThreadPoolTimer]: ...
36
- @typing.overload
37
- def create_periodic_timer(cls, handler: typing.Optional[TimerElapsedHandler], period: datetime.timedelta, destroyed: typing.Optional[TimerDestroyedHandler], /) -> typing.Optional[ThreadPoolTimer]: ...
38
- @typing.overload
39
- def create_timer(cls, handler: typing.Optional[TimerElapsedHandler], delay: datetime.timedelta, /) -> typing.Optional[ThreadPoolTimer]: ...
40
- @typing.overload
41
- def create_timer(cls, handler: typing.Optional[TimerElapsedHandler], delay: datetime.timedelta, destroyed: typing.Optional[TimerDestroyedHandler], /) -> typing.Optional[ThreadPoolTimer]: ...
33
+ class ThreadPoolTimer_Static(winrt._winrt.IInspectable_Static):
34
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
35
+ def create_periodic_timer(cls, handler: TimerElapsedHandler, period: datetime.timedelta, /) -> ThreadPoolTimer: ...
36
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
37
+ def create_periodic_timer_with_completion(cls, handler: TimerElapsedHandler, period: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
38
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
39
+ def create_timer(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, /) -> ThreadPoolTimer: ...
40
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
41
+ def create_timer_with_completion(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
42
42
 
43
43
  @typing.final
44
44
  class ThreadPoolTimer(winrt.system.Object, metaclass=ThreadPoolTimer_Static):
45
- @staticmethod
46
- def _from(obj: winrt.system.Object, /) -> ThreadPoolTimer: ...
45
+ # System.Void Windows.System.Threading.ThreadPoolTimer::Cancel()
47
46
  def cancel(self) -> None: ...
47
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Delay()
48
48
  @_property
49
49
  def delay(self) -> datetime.timedelta: ...
50
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Period()
50
51
  @_property
51
52
  def period(self) -> datetime.timedelta: ...
52
53
 
@@ -1,11 +1,14 @@
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.0.0
2
2
 
3
3
  import enum
4
4
  import typing
5
5
  import uuid as _uuid
6
6
 
7
7
  import winrt.system
8
- from winrt import _winrt_windows_system_threading
8
+ from winrt._winrt_windows_system_threading import (
9
+ ThreadPool,
10
+ ThreadPoolTimer,
11
+ )
9
12
 
10
13
  if typing.TYPE_CHECKING:
11
14
  import winrt.windows.foundation as windows_foundation
@@ -29,8 +32,6 @@ class WorkItemPriority(enum.IntEnum):
29
32
  NORMAL = 0
30
33
  HIGH = 1
31
34
 
32
- ThreadPool = _winrt_windows_system_threading.ThreadPool
33
- ThreadPoolTimer = _winrt_windows_system_threading.ThreadPoolTimer
34
- TimerDestroyedHandler = typing.Callable[[typing.Optional[ThreadPoolTimer]], None]
35
- TimerElapsedHandler = typing.Callable[[typing.Optional[ThreadPoolTimer]], None]
35
+ TimerDestroyedHandler = typing.Callable[[ThreadPoolTimer], None]
36
+ TimerElapsedHandler = typing.Callable[[ThreadPoolTimer], None]
36
37
  WorkItemHandler = typing.Callable[["windows_foundation.IAsyncAction"], None]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: winrt-Windows.System.Threading
3
- Version: 2.3.0
3
+ Version: 3.0.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,11 +10,11 @@ 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.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all] ==2.3.0 ; extra == 'all'
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_system_threading.cp313-win32.pyd,sha256=qCBBCNZvLzV7Dn9sZ730BLTgjx8LJTpSGqlod_Szn_E,62976
2
+ winrt/_winrt_windows_system_threading.pyi,sha256=hktnvytMvlOj1KmhLcRXBkWpdqR0xvzOAeR3ABx2y0A,3521
3
+ winrt/windows/system/threading/__init__.py,sha256=nNr1AR_CEWJeNpm975Cr1p-9Xa4SWydyHh45iX61axQ,867
4
+ winrt/windows/system/threading/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_system_threading-3.0.0.dist-info/METADATA,sha256=_xt5gimjVBmGZuIxvujNvWuXUCC44U9OZprM4uHcPlw,1038
6
+ winrt_windows_system_threading-3.0.0.dist-info/WHEEL,sha256=8Gv4WKH_0f55T1l30Tvu6kA02txzFBtGFjLipzysfps,97
7
+ winrt_windows_system_threading-3.0.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_system_threading-3.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-win32
5
5
 
@@ -1,8 +0,0 @@
1
- winrt/_winrt_windows_system_threading.cp313-win32.pyd,sha256=vzDMy-2imB329f94SsS8mkT2INd-Bkd2ITUzTvPFiKc,49664
2
- winrt/_winrt_windows_system_threading.pyi,sha256=x-c9LtBHPT5ElKNMUGtnYN3TYk_pVO2ZkLjAKWrsF-4,2287
3
- winrt/windows/system/threading/__init__.py,sha256=4IbJwqSDvslynvvFjfWfDPlFxXsRlfm5yAtLNE9zcWk,982
4
- winrt/windows/system/threading/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- winrt_Windows.System.Threading-2.3.0.dist-info/METADATA,sha256=rrKH8NznLHxGxIekQgXuK5hsRub5alyXq7K0rGToGqo,1047
6
- winrt_Windows.System.Threading-2.3.0.dist-info/WHEEL,sha256=grkPFx6wDuz3V_wTCWikc17io-qSpFV10-6uWRzUPb0,97
7
- winrt_Windows.System.Threading-2.3.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
- winrt_Windows.System.Threading-2.3.0.dist-info/RECORD,,