⚠ Does not contain any tests whatsoever
Autogenerated from my wxPython fork which contains some improvements to the .pyi
code generation not yet upstreamed.
The fork is based on somewhere around version 4.2.3, but the type stubs are probably useful for older version as well. I am using them for working with wxPython 4.2.1 personally.
Regenerate all *.pyi
files (in Phoenix git):
python build.py touch etg
Copy all *.pyi
files from Phoenix git to here:
cd wx && find . -name '*.pyi' | cpio -pdmu <path-to-this-project>/src/wx-stubs/
- 2 Phase etg execution: PR #2776
- Should
c
schar
andchar*
be Pythonbytes
? Currently the conversion is defined asstr
. (See review in PR #2468) -
{U}IntPtr
Python equivalent type - Remove
wx.
fromTypeAlias
es_TwoInt
and similar in files other thancore.pyi
- Remove
wx.
from most/all names in core.pyi (e.g. in fonts and pen related code andwx.deprecated
) - Remove duplicate
wx.Colour
in some/all/?Union
s - Remove implementations from
.pyi
files - Does
SpinCtrlDouble
accept PythonDecimal
s inSetValue(...)
and similar? If yes does this conversion apply toc
float64
in general and should be recorded as automatic conversion? -
renameClass
in etg scripts is not applied to type hints (they retain the old name) - Sip generates some
c
array wrapper classes (created in etg scripts), which are recorded in type hints, but don't exists as classes in.pyi
files - Function (and
@property
) names shadow classes in type hints. E.g. the following is a bad type hint onf()
:
class Foo: ...
class Bar:
def f(self) -> Foo: ...
@property
def Foo(self) -> None: ...