feat: typing support for helpers (#2588)

* feat: basic typing support

* docs: mention syncing as suggested by @rwgk

* docs: update changelog

* docs: copy of warning in limitations
This commit is contained in:
Henry Schreiner
2020-10-14 14:08:41 -04:00
committed by GitHub
parent a8c2e3eec5
commit 645d83813b
15 changed files with 114 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ if not os.path.exists(lib):
libsize = os.path.getsize(lib)
print("------", os.path.basename(lib), "file size:", libsize, end='')
print("------", os.path.basename(lib), "file size:", libsize, end="")
if os.path.exists(save):
with open(save) as sf:
@@ -34,5 +34,5 @@ if os.path.exists(save):
else:
print()
with open(save, 'w') as sf:
with open(save, "w") as sf:
sf.write(str(libsize))

View File

@@ -19,6 +19,7 @@ setup(
"pybind11.share.cmake.pybind11",
],
package_data={
"pybind11": ["py.typed", "*.pyi"],
"pybind11.include.pybind11": ["*.h"],
"pybind11.include.pybind11.detail": ["*.h"],
"pybind11.share.cmake.pybind11": ["*.cmake"],