pygobject / pygobject-stubs

PEP 561 Typing Stubs for PyGObject
GNU Lesser General Public License v2.1
74 stars 26 forks source link

Expose deprecations using PEP 702 #165

Open jtojnar opened 7 months ago

jtojnar commented 7 months ago

There is now PEP 702 – Marking deprecations using the type system, which might be useful for updating deprecated code.

lovetox commented 7 months ago

@mat-xc do you know if the introspection files contain the information if the method is deprecated?

jtojnar commented 7 months ago

GI.BaseInfo.is_deprecated() method is what PyGObject itself uses.