-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: add nox command to generate pyi stubs (#89)
* perf: add nox command to generate pyi stubs Signed-off-by: l.feng <[email protected]> * Sync template Signed-off-by: l.feng <[email protected]> --------- Signed-off-by: l.feng <[email protected]>
- Loading branch information
Showing
8 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
"""Pybind11 _core plugin interfaces""" | ||
""" | ||
Pybind11 _core plugin | ||
----------------------- | ||
.. currentmodule:: _core | ||
""" | ||
|
||
from __future__ import annotations | ||
|
||
__all__ = ["version"] | ||
|
||
def version() -> str: | ||
"""_core plugin version.""" | ||
""" | ||
The _core plugin version. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 12 additions & 2 deletions
14
template/src/{{ module_name }}/[% if compiled == true %]_core.pyi[% endif %]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
"""Pybind11 _core plugin interfaces""" | ||
""" | ||
|
||
Pybind11 _core plugin | ||
----------------------- | ||
.. currentmodule:: _core | ||
|
||
""" | ||
|
||
from __future__ import annotations | ||
|
||
__all__ = ["version"] | ||
|
||
def version() -> str: | ||
"""_core plugin version.""" | ||
""" | ||
The _core plugin version. | ||
""" |