winrt-Windows.System.Diagnostics 3.2.1__tar.gz → 4!10.0.28000.2957__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 (24) hide show
  1. winrt_windows_system_diagnostics-4!10.0.28000.2957/.gitignore +5 -0
  2. winrt_windows_system_diagnostics-4!10.0.28000.2957/LICENSE +22 -0
  3. winrt_windows_system_diagnostics-4!10.0.28000.2957/PKG-INFO +48 -0
  4. winrt_windows_system_diagnostics-4!10.0.28000.2957/README.md +17 -0
  5. winrt_windows_system_diagnostics-4!10.0.28000.2957/pyproject.toml +60 -0
  6. winrt_windows_system_diagnostics-4!10.0.28000.2957/winrt/windows/system/diagnostics/__init__.py +25 -0
  7. winrt_windows_system_diagnostics-3.2.1/winrt/_winrt_windows_system_diagnostics.pyi → winrt_windows_system_diagnostics-4!10.0.28000.2957/winrt/windows/system/diagnostics/__init__.pyi +62 -13
  8. winrt_windows_system_diagnostics-4!10.0.28000.2957/winrt/windows/system/diagnostics/_table.pywinrt.txt +618 -0
  9. winrt_windows_system_diagnostics-3.2.1/PKG-INFO +0 -28
  10. winrt_windows_system_diagnostics-3.2.1/README.md +0 -7
  11. winrt_windows_system_diagnostics-3.2.1/all-requirements.txt +0 -6
  12. winrt_windows_system_diagnostics-3.2.1/py.Windows.System.Diagnostics.cpp +0 -2990
  13. winrt_windows_system_diagnostics-3.2.1/pyproject.toml +0 -47
  14. winrt_windows_system_diagnostics-3.2.1/pywinrt-version.txt +0 -1
  15. winrt_windows_system_diagnostics-3.2.1/requirements.txt +0 -3
  16. winrt_windows_system_diagnostics-3.2.1/setup.cfg +0 -4
  17. winrt_windows_system_diagnostics-3.2.1/setup.py +0 -33
  18. winrt_windows_system_diagnostics-3.2.1/winrt/windows/system/diagnostics/__init__.py +0 -49
  19. winrt_windows_system_diagnostics-3.2.1/winrt_Windows.System.Diagnostics.egg-info/PKG-INFO +0 -28
  20. winrt_windows_system_diagnostics-3.2.1/winrt_Windows.System.Diagnostics.egg-info/SOURCES.txt +0 -15
  21. winrt_windows_system_diagnostics-3.2.1/winrt_Windows.System.Diagnostics.egg-info/dependency_links.txt +0 -1
  22. winrt_windows_system_diagnostics-3.2.1/winrt_Windows.System.Diagnostics.egg-info/requires.txt +0 -7
  23. winrt_windows_system_diagnostics-3.2.1/winrt_Windows.System.Diagnostics.egg-info/top_level.txt +0 -1
  24. {winrt_windows_system_diagnostics-3.2.1 → winrt_windows_system_diagnostics-4!10.0.28000.2957}/winrt/windows/system/diagnostics/py.typed +0 -0
@@ -0,0 +1,5 @@
1
+ *.egg-info
2
+ *.tar.gz
3
+ *.whl
4
+ build/
5
+ dist/
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Diagnostics
3
+ Version: 4!10.0.28000.2957
4
+ Summary: PyWinRT projection of the Windows.System.Diagnostics namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2957
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2957
25
+ Provides-Extra: all
26
+ Requires-Dist: winrt-windows-data-json[all]>=4!10.0.28000.2957; extra == 'all'
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2957; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2957; extra == 'all'
29
+ Requires-Dist: winrt-windows-system[all]>=4!10.0.28000.2957; extra == 'all'
30
+ Description-Content-Type: text/markdown
31
+
32
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
33
+
34
+ # winrt-Windows.System.Diagnostics
35
+
36
+ Windows Runtime (WinRT) APIs for the `Windows.System.Diagnostics` namespace.
37
+
38
+ This package provides the `winrt.windows.system.diagnostics` module.
39
+
40
+ The WinRT APIs in it are those of version 10.0.28000.2957 of the
41
+ `Microsoft.Windows.SDK.CPP` NuGet package.
42
+
43
+ ```
44
+ pip install winrt-Windows.System.Diagnostics
45
+ ```
46
+
47
+ Other WinRT namespaces are packages of their own, so install the package of
48
+ each namespace your code imports from.
@@ -0,0 +1,17 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.System.Diagnostics
4
+
5
+ Windows Runtime (WinRT) APIs for the `Windows.System.Diagnostics` namespace.
6
+
7
+ This package provides the `winrt.windows.system.diagnostics` module.
8
+
9
+ The WinRT APIs in it are those of version 10.0.28000.2957 of the
10
+ `Microsoft.Windows.SDK.CPP` NuGet package.
11
+
12
+ ```
13
+ pip install winrt-Windows.System.Diagnostics
14
+ ```
15
+
16
+ Other WinRT namespaces are packages of their own, so install the package of
17
+ each namespace your code imports from.
@@ -0,0 +1,60 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "winrt-Windows.System.Diagnostics"
9
+ version = "4!10.0.28000.2957"
10
+ description = "PyWinRT projection of the Windows.System.Diagnostics namespace"
11
+ readme = "README.md"
12
+ license = "MIT"
13
+ license-files = ["LICENSE"]
14
+ classifiers = [
15
+ "Operating System :: Microsoft :: Windows",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
21
+ "Programming Language :: Python :: 3.15",
22
+ "Programming Language :: Python :: Implementation :: CPython",
23
+ "Intended Audience :: Developers",
24
+ "Programming Language :: Python :: Free Threading :: 2 - Beta",
25
+ "Typing :: Typed",
26
+ ]
27
+ requires-python = ">=3.11"
28
+ dependencies = [
29
+ "winrt-runtime>=4.0.0,<5",
30
+ "winrt-Windows.Foundation>=4!10.0.28000.2957",
31
+ "winrt-Windows.Foundation.Collections>=4!10.0.28000.2957",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ all = [
36
+ "winrt-Windows.Data.Json[all]>=4!10.0.28000.2957",
37
+ "winrt-Windows.Foundation[all]>=4!10.0.28000.2957",
38
+ "winrt-Windows.Foundation.Collections[all]>=4!10.0.28000.2957",
39
+ "winrt-Windows.System[all]>=4!10.0.28000.2957",
40
+ ]
41
+
42
+ [project.urls]
43
+ Documentation = "https://pywinrt.readthedocs.io"
44
+ Repository = "https://github.com/pywinrt/pywinrt"
45
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
46
+
47
+ [tool.hatch.build.targets.sdist]
48
+ # The text form of the table is what the source distribution carries, and the
49
+ # compiled form is build output wherever it turns up. Hatchling reads no
50
+ # .gitignore above the package, so it has to be told about the latter.
51
+ only-include = ["winrt", "LICENSE", "README.md"]
52
+ exclude = ["**/_table.pywinrt"]
53
+
54
+ [tool.hatch.build.targets.wheel]
55
+ packages = ["winrt"]
56
+ exclude = ["**/_table.pywinrt.txt"]
57
+
58
+ # winrt.table.build_hooks in winrt-table-compiler, which compiles each table
59
+ # the package carries and puts the result beside the __init__.py that loads it.
60
+ [tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
@@ -0,0 +1,25 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "DiagnosticActionState",
10
+ "DiagnosticActionResult",
11
+ "DiagnosticInvoker",
12
+ "ProcessCpuUsage",
13
+ "ProcessCpuUsageReport",
14
+ "ProcessDiagnosticInfo",
15
+ "ProcessDiskUsage",
16
+ "ProcessDiskUsageReport",
17
+ "ProcessMemoryUsage",
18
+ "ProcessMemoryUsageReport",
19
+ "SystemCpuUsage",
20
+ "SystemCpuUsageReport",
21
+ "SystemDiagnosticInfo",
22
+ "SystemMemoryUsage",
23
+ "SystemMemoryUsageReport",
24
+ ]
25
+
@@ -1,25 +1,48 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
2
 
3
+ import collections.abc as _cabc
3
4
  import datetime
4
- import sys
5
- import types
5
+ import enum
6
6
  import typing
7
- import uuid as _uuid
8
7
  from builtins import property as _property
9
8
 
10
- import winrt._winrt
11
9
  import winrt.system
12
10
  import winrt.windows.data.json as windows_data_json
13
11
  import winrt.windows.foundation as windows_foundation
14
12
  import winrt.windows.foundation.collections as windows_foundation_collections
15
13
  import winrt.windows.system as windows_system
16
14
 
17
- from winrt.windows.system.diagnostics import DiagnosticActionState
15
+ __all__ = [
16
+ "DiagnosticActionState",
17
+ "DiagnosticActionResult",
18
+ "DiagnosticInvoker",
19
+ "ProcessCpuUsage",
20
+ "ProcessCpuUsageReport",
21
+ "ProcessDiagnosticInfo",
22
+ "ProcessDiskUsage",
23
+ "ProcessDiskUsageReport",
24
+ "ProcessMemoryUsage",
25
+ "ProcessMemoryUsageReport",
26
+ "SystemCpuUsage",
27
+ "SystemCpuUsageReport",
28
+ "SystemDiagnosticInfo",
29
+ "SystemMemoryUsage",
30
+ "SystemMemoryUsageReport",
31
+ ]
18
32
 
19
- Self = typing.TypeVar('Self')
33
+ class DiagnosticActionState(enum.IntEnum):
34
+ INITIALIZING = 0
35
+ DOWNLOADING = 1
36
+ VERIFYING_TRUST = 2
37
+ DETECTING = 3
38
+ RESOLVING = 4
39
+ VERIFYING_RESOLUTION = 5
40
+ EXECUTING = 6
20
41
 
21
42
  @typing.final
22
43
  class DiagnosticActionResult(winrt.system.Object):
44
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
45
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
23
46
  # Windows.Foundation.HResult Windows.System.Diagnostics.DiagnosticActionResult::get_ExtendedError()
24
47
  @_property
25
48
  def extended_error(self) -> windows_foundation.HResult: ...
@@ -28,7 +51,7 @@ class DiagnosticActionResult(winrt.system.Object):
28
51
  def results(self) -> windows_foundation_collections.ValueSet: ...
29
52
 
30
53
  @typing.final
31
- class DiagnosticInvoker_Static(winrt._winrt.IInspectable_Static):
54
+ class DiagnosticInvoker_Static(winrt.system.Object_Static):
32
55
  # Windows.System.Diagnostics.DiagnosticInvoker Windows.System.Diagnostics.DiagnosticInvoker::GetDefault()
33
56
  def get_default(cls) -> DiagnosticInvoker: ...
34
57
  # Windows.System.Diagnostics.DiagnosticInvoker Windows.System.Diagnostics.DiagnosticInvoker::GetForUser(Windows.System.User)
@@ -39,6 +62,8 @@ class DiagnosticInvoker_Static(winrt._winrt.IInspectable_Static):
39
62
 
40
63
  @typing.final
41
64
  class DiagnosticInvoker(winrt.system.Object, metaclass=DiagnosticInvoker_Static):
65
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
66
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
42
67
  # Windows.Foundation.IAsyncOperationWithProgress`2<Windows.System.Diagnostics.DiagnosticActionResult,Windows.System.Diagnostics.DiagnosticActionState> Windows.System.Diagnostics.DiagnosticInvoker::RunDiagnosticActionAsync(Windows.Data.Json.JsonObject)
43
68
  def run_diagnostic_action_async(self, context: windows_data_json.JsonObject, /) -> windows_foundation.IAsyncOperationWithProgress[DiagnosticActionResult, DiagnosticActionState]: ...
44
69
  # Windows.Foundation.IAsyncOperationWithProgress`2<Windows.System.Diagnostics.DiagnosticActionResult,Windows.System.Diagnostics.DiagnosticActionState> Windows.System.Diagnostics.DiagnosticInvoker::RunDiagnosticActionFromStringAsync(System.String)
@@ -46,11 +71,15 @@ class DiagnosticInvoker(winrt.system.Object, metaclass=DiagnosticInvoker_Static)
46
71
 
47
72
  @typing.final
48
73
  class ProcessCpuUsage(winrt.system.Object):
74
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
75
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
49
76
  # Windows.System.Diagnostics.ProcessCpuUsageReport Windows.System.Diagnostics.ProcessCpuUsage::GetReport()
50
77
  def get_report(self) -> ProcessCpuUsageReport: ...
51
78
 
52
79
  @typing.final
53
80
  class ProcessCpuUsageReport(winrt.system.Object):
81
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
82
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
54
83
  # Windows.Foundation.TimeSpan Windows.System.Diagnostics.ProcessCpuUsageReport::get_KernelTime()
55
84
  @_property
56
85
  def kernel_time(self) -> datetime.timedelta: ...
@@ -59,18 +88,20 @@ class ProcessCpuUsageReport(winrt.system.Object):
59
88
  def user_time(self) -> datetime.timedelta: ...
60
89
 
61
90
  @typing.final
62
- class ProcessDiagnosticInfo_Static(winrt._winrt.IInspectable_Static):
91
+ class ProcessDiagnosticInfo_Static(winrt.system.Object_Static):
63
92
  # Windows.System.Diagnostics.ProcessDiagnosticInfo Windows.System.Diagnostics.ProcessDiagnosticInfo::GetForCurrentProcess()
64
93
  def get_for_current_process(cls) -> ProcessDiagnosticInfo: ...
65
94
  # Windows.Foundation.Collections.IVectorView`1<Windows.System.Diagnostics.ProcessDiagnosticInfo> Windows.System.Diagnostics.ProcessDiagnosticInfo::GetForProcesses()
66
- def get_for_processes(cls) -> typing.Sequence[ProcessDiagnosticInfo]: ...
95
+ def get_for_processes(cls) -> _cabc.Sequence[ProcessDiagnosticInfo]: ...
67
96
  # Windows.System.Diagnostics.ProcessDiagnosticInfo Windows.System.Diagnostics.ProcessDiagnosticInfo::TryGetForProcessId(System.UInt32)
68
- def try_get_for_process_id(cls, process_id: winrt.system.UInt32, /) -> typing.Optional[ProcessDiagnosticInfo]: ...
97
+ def try_get_for_process_id(cls, process_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> ProcessDiagnosticInfo | None: ...
69
98
 
70
99
  @typing.final
71
100
  class ProcessDiagnosticInfo(winrt.system.Object, metaclass=ProcessDiagnosticInfo_Static):
101
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
102
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
72
103
  # Windows.Foundation.Collections.IVector`1<Windows.System.AppDiagnosticInfo> Windows.System.Diagnostics.ProcessDiagnosticInfo::GetAppDiagnosticInfos()
73
- def get_app_diagnostic_infos(self) -> typing.MutableSequence[windows_system.AppDiagnosticInfo]: ...
104
+ def get_app_diagnostic_infos(self) -> _cabc.MutableSequence[windows_system.AppDiagnosticInfo]: ...
74
105
  # Windows.System.Diagnostics.ProcessCpuUsage Windows.System.Diagnostics.ProcessDiagnosticInfo::get_CpuUsage()
75
106
  @_property
76
107
  def cpu_usage(self) -> ProcessCpuUsage: ...
@@ -98,11 +129,15 @@ class ProcessDiagnosticInfo(winrt.system.Object, metaclass=ProcessDiagnosticInfo
98
129
 
99
130
  @typing.final
100
131
  class ProcessDiskUsage(winrt.system.Object):
132
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
133
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
101
134
  # Windows.System.Diagnostics.ProcessDiskUsageReport Windows.System.Diagnostics.ProcessDiskUsage::GetReport()
102
135
  def get_report(self) -> ProcessDiskUsageReport: ...
103
136
 
104
137
  @typing.final
105
138
  class ProcessDiskUsageReport(winrt.system.Object):
139
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
140
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
106
141
  # System.Int64 Windows.System.Diagnostics.ProcessDiskUsageReport::get_BytesReadCount()
107
142
  @_property
108
143
  def bytes_read_count(self) -> winrt.system.Int64: ...
@@ -124,11 +159,15 @@ class ProcessDiskUsageReport(winrt.system.Object):
124
159
 
125
160
  @typing.final
126
161
  class ProcessMemoryUsage(winrt.system.Object):
162
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
163
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
127
164
  # Windows.System.Diagnostics.ProcessMemoryUsageReport Windows.System.Diagnostics.ProcessMemoryUsage::GetReport()
128
165
  def get_report(self) -> ProcessMemoryUsageReport: ...
129
166
 
130
167
  @typing.final
131
168
  class ProcessMemoryUsageReport(winrt.system.Object):
169
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
170
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
132
171
  # System.UInt64 Windows.System.Diagnostics.ProcessMemoryUsageReport::get_NonPagedPoolSizeInBytes()
133
172
  @_property
134
173
  def non_paged_pool_size_in_bytes(self) -> winrt.system.UInt64: ...
@@ -168,11 +207,15 @@ class ProcessMemoryUsageReport(winrt.system.Object):
168
207
 
169
208
  @typing.final
170
209
  class SystemCpuUsage(winrt.system.Object):
210
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
211
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
171
212
  # Windows.System.Diagnostics.SystemCpuUsageReport Windows.System.Diagnostics.SystemCpuUsage::GetReport()
172
213
  def get_report(self) -> SystemCpuUsageReport: ...
173
214
 
174
215
  @typing.final
175
216
  class SystemCpuUsageReport(winrt.system.Object):
217
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
218
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
176
219
  # Windows.Foundation.TimeSpan Windows.System.Diagnostics.SystemCpuUsageReport::get_IdleTime()
177
220
  @_property
178
221
  def idle_time(self) -> datetime.timedelta: ...
@@ -184,7 +227,7 @@ class SystemCpuUsageReport(winrt.system.Object):
184
227
  def user_time(self) -> datetime.timedelta: ...
185
228
 
186
229
  @typing.final
187
- class SystemDiagnosticInfo_Static(winrt._winrt.IInspectable_Static):
230
+ class SystemDiagnosticInfo_Static(winrt.system.Object_Static):
188
231
  # Windows.System.Diagnostics.SystemDiagnosticInfo Windows.System.Diagnostics.SystemDiagnosticInfo::GetForCurrentSystem()
189
232
  def get_for_current_system(cls) -> SystemDiagnosticInfo: ...
190
233
  # System.Boolean Windows.System.Diagnostics.SystemDiagnosticInfo::IsArchitectureSupported(Windows.System.ProcessorArchitecture)
@@ -195,6 +238,8 @@ class SystemDiagnosticInfo_Static(winrt._winrt.IInspectable_Static):
195
238
 
196
239
  @typing.final
197
240
  class SystemDiagnosticInfo(winrt.system.Object, metaclass=SystemDiagnosticInfo_Static):
241
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
242
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
198
243
  # Windows.System.Diagnostics.SystemCpuUsage Windows.System.Diagnostics.SystemDiagnosticInfo::get_CpuUsage()
199
244
  @_property
200
245
  def cpu_usage(self) -> SystemCpuUsage: ...
@@ -204,11 +249,15 @@ class SystemDiagnosticInfo(winrt.system.Object, metaclass=SystemDiagnosticInfo_S
204
249
 
205
250
  @typing.final
206
251
  class SystemMemoryUsage(winrt.system.Object):
252
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
253
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
207
254
  # Windows.System.Diagnostics.SystemMemoryUsageReport Windows.System.Diagnostics.SystemMemoryUsage::GetReport()
208
255
  def get_report(self) -> SystemMemoryUsageReport: ...
209
256
 
210
257
  @typing.final
211
258
  class SystemMemoryUsageReport(winrt.system.Object):
259
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
260
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
212
261
  # System.UInt64 Windows.System.Diagnostics.SystemMemoryUsageReport::get_AvailableSizeInBytes()
213
262
  @_property
214
263
  def available_size_in_bytes(self) -> winrt.system.UInt64: ...