winrt-runtime 4.0.3__tar.gz → 4.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.
- {winrt_runtime-4.0.3/python/winrt_runtime.egg-info → winrt_runtime-4.1.0}/PKG-INFO +1 -1
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/runtime/_internals.py +144 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0/python/winrt_runtime.egg-info}/PKG-INFO +1 -1
- winrt_runtime-4.1.0/version.txt +1 -0
- winrt_runtime-4.0.3/version.txt +0 -1
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/LICENSE +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/MANIFEST.in +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/README.md +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/pyproject.toml +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/__pyinstaller/__init__.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/__pyinstaller/hook-winrt.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/_winrt.pyi +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/py.typed +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/runtime/__init__.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/runtime/interop.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/runtime/py.typed +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/system/__init__.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/system/hresult.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt/system/py.typed +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/SOURCES.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/dependency_links.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/entry_points.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/requires.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/top_level.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/requirements.txt +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/setup.cfg +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/setup.py +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt_array.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt_array.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt_box.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt_buffer.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/_winrt_buffer.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/arrays.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/arrays.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/async.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/async.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/callbacks.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/callbacks.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/collections.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/collections.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/compose.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/compose.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/delegates.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/delegates.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/enums.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/enums.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/errors.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/generics.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/generics.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/handles.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/implements.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/implements.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Foundation.Collections.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Foundation.Metadata.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Foundation.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Storage.Streams.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Storage.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/base.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/base_macros.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Devices.Geolocation.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Devices.Geolocation.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Collections.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Collections.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Collections.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Metadata.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Metadata.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.Metadata.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.FileProperties.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.FileProperties.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.FileProperties.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Provider.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Provider.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Provider.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Search.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Search.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Search.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Streams.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Streams.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.Streams.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.2.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.RemoteSystems.0.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.RemoteSystems.1.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pythoncapi_compat.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/abi.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/array.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/async.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/base.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/buffer.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/convert.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/errors.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/handles.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/prelude.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/throw_helpers.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/traits.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/pywinrt/wrappers.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/interp.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/interp.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/members.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/members.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/metaclass.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/module_state.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-buffer.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-buffer.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-statics.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-statics.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-traits.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics-values.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/numerics.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/objects.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/objects.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/protocols.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/protocols.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pycollections.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pycollections.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pymapping.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pymapping.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pysequence.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/pysequence.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/runtime.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/runtime.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/shapes-generated.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/shapes.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/shapes.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/structs.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/structs.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/table.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/table.h +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/types.cpp +0 -0
- {winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/types.h +0 -0
|
@@ -194,6 +194,150 @@ def alias_field(typ: type, name: str) -> None:
|
|
|
194
194
|
setattr(typ, name, property(field))
|
|
195
195
|
|
|
196
196
|
|
|
197
|
+
# Staged deprecation of the names a projection published and has since
|
|
198
|
+
# renamed, such as those PyWinRT now spells differently in Python. The
|
|
199
|
+
# generated calls to the functions below come from the projection's list of
|
|
200
|
+
# renames, which says when each name changed. This is DeprecationWarning, then
|
|
201
|
+
# FutureWarning, and after that the aliases are removed, on a schedule of its
|
|
202
|
+
# own rather than that of the v3.x method names.
|
|
203
|
+
_RENAMED_WARNING: type[Warning] = DeprecationWarning
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def _owner_name(owner: type) -> str:
|
|
207
|
+
# an interface's members are reached through its wrapper type, _IFoo,
|
|
208
|
+
# which the user never meets, so it is named as the interface
|
|
209
|
+
return owner.__name__.removeprefix("_")
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def _warn_renamed(owner: type, old: str, name: str, call: str = "") -> None:
|
|
213
|
+
warnings.warn(
|
|
214
|
+
f"{_owner_name(owner)}.{old}{call} is deprecated, use {name}{call} instead",
|
|
215
|
+
_RENAMED_WARNING,
|
|
216
|
+
stacklevel=3,
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _add_renamed_method(target: type, owner: type, old: str, name: str) -> None:
|
|
221
|
+
# a real attribute of the type always wins over an alias
|
|
222
|
+
if old in vars(target):
|
|
223
|
+
return
|
|
224
|
+
|
|
225
|
+
def method(self: Any, *args: Any) -> Any:
|
|
226
|
+
_warn_renamed(owner, old, name, "()")
|
|
227
|
+
return getattr(self, name)(*args)
|
|
228
|
+
|
|
229
|
+
method.__name__ = old
|
|
230
|
+
method.__qualname__ = f"{_owner_name(owner)}.{old}"
|
|
231
|
+
method.__doc__ = f"Deprecated alias of ``{name}()``."
|
|
232
|
+
|
|
233
|
+
setattr(target, old, method)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def _add_renamed_property(target: type, owner: type, old: str, name: str) -> None:
|
|
237
|
+
# a real attribute of the type always wins over an alias
|
|
238
|
+
if old in vars(target):
|
|
239
|
+
return
|
|
240
|
+
|
|
241
|
+
def get(self: Any) -> Any:
|
|
242
|
+
_warn_renamed(owner, old, name)
|
|
243
|
+
return getattr(self, name)
|
|
244
|
+
|
|
245
|
+
def put(self: Any, value: Any) -> None:
|
|
246
|
+
_warn_renamed(owner, old, name)
|
|
247
|
+
setattr(self, name, value)
|
|
248
|
+
|
|
249
|
+
setattr(target, old, property(get, put, doc=f"Deprecated alias of ``{name}``."))
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def renamed_method(typ: type, old: str, name: str) -> None:
|
|
253
|
+
"""
|
|
254
|
+
Adds a deprecated alias of a method to a projected type, by the name the
|
|
255
|
+
method was published with before it was renamed.
|
|
256
|
+
|
|
257
|
+
An event is renamed as its ``add_`` and ``remove_`` methods.
|
|
258
|
+
|
|
259
|
+
Args:
|
|
260
|
+
typ: The projected type.
|
|
261
|
+
old: The name the method had.
|
|
262
|
+
name: The name of the method now.
|
|
263
|
+
"""
|
|
264
|
+
_add_renamed_method(typ, typ, old, name)
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
def renamed_static_method(typ: type, old: str, name: str) -> None:
|
|
268
|
+
"""
|
|
269
|
+
Adds a deprecated alias of a static method to a projected type, by the name
|
|
270
|
+
the method was published with before it was renamed.
|
|
271
|
+
|
|
272
|
+
Args:
|
|
273
|
+
typ: The projected type.
|
|
274
|
+
old: The name the method had.
|
|
275
|
+
name: The name of the method now.
|
|
276
|
+
"""
|
|
277
|
+
# static methods are implemented by the metaclass of the projected type
|
|
278
|
+
_add_renamed_method(type(typ), typ, old, name)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def renamed_property(typ: type, old: str, name: str) -> None:
|
|
282
|
+
"""
|
|
283
|
+
Adds a deprecated alias of a property to a projected type, by the name the
|
|
284
|
+
property was published with before it was renamed.
|
|
285
|
+
|
|
286
|
+
Args:
|
|
287
|
+
typ: The projected type.
|
|
288
|
+
old: The name the property had.
|
|
289
|
+
name: The name of the property now.
|
|
290
|
+
"""
|
|
291
|
+
_add_renamed_property(typ, typ, old, name)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def renamed_static_property(typ: type, old: str, name: str) -> None:
|
|
295
|
+
"""
|
|
296
|
+
Adds a deprecated alias of a static property to a projected type, by the
|
|
297
|
+
name the property was published with before it was renamed.
|
|
298
|
+
|
|
299
|
+
Args:
|
|
300
|
+
typ: The projected type.
|
|
301
|
+
old: The name the property had.
|
|
302
|
+
name: The name of the property now.
|
|
303
|
+
"""
|
|
304
|
+
# static properties are implemented by the metaclass of the projected type
|
|
305
|
+
_add_renamed_property(type(typ), typ, old, name)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
class _RenamedEnumMember:
|
|
309
|
+
"""
|
|
310
|
+
The deprecated alias of an enum member: reading it warns and gives the
|
|
311
|
+
member. It is not a member itself, so it is not iterated and ``typ[old]``
|
|
312
|
+
does not find it.
|
|
313
|
+
"""
|
|
314
|
+
|
|
315
|
+
def __init__(self, old: str, name: str) -> None:
|
|
316
|
+
self.old = old
|
|
317
|
+
self.name = name
|
|
318
|
+
|
|
319
|
+
def __get__(self, instance: object, owner: type) -> Any:
|
|
320
|
+
_warn_renamed(owner, self.old, self.name)
|
|
321
|
+
return getattr(owner, self.name)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
def renamed_enum_member(typ: type, old: str, name: str) -> None:
|
|
325
|
+
"""
|
|
326
|
+
Adds a deprecated alias of a member to a projected enum, by the name the
|
|
327
|
+
member was published with before it was renamed.
|
|
328
|
+
|
|
329
|
+
Args:
|
|
330
|
+
typ: The projected enum.
|
|
331
|
+
old: The name the member had.
|
|
332
|
+
name: The name of the member now.
|
|
333
|
+
"""
|
|
334
|
+
# a real member or attribute of the enum always wins over an alias
|
|
335
|
+
if old in vars(typ):
|
|
336
|
+
return
|
|
337
|
+
|
|
338
|
+
setattr(typ, old, _RenamedEnumMember(old, name))
|
|
339
|
+
|
|
340
|
+
|
|
197
341
|
# NB: The types implemented in C cannot inherit from abc.ABC since Python 3.12
|
|
198
342
|
# so we have to implement the protocols like this instead.
|
|
199
343
|
# https://github.com/python/cpython/issues/103968#issuecomment-1589928055
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.1.0
|
winrt_runtime-4.0.3/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4.0.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/python/winrt_runtime.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Foundation.Metadata.h
RENAMED
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/Windows.Storage.Streams.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.0.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.1.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Foundation.2.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.0.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.1.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.Storage.2.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.0.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.1.h
RENAMED
|
File without changes
|
{winrt_runtime-4.0.3 → winrt_runtime-4.1.0}/src/include/cppwinrt/winrt/impl/Windows.System.2.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|