mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-02 04:31:38 +00:00
Adopt PEP 484 type hints for C++ types exported to Python
This commit is contained in:
@@ -34,8 +34,8 @@ class EExxaammpplleePPyytthhoonnTTyyppeess(__builtin__.object)
|
||||
| x.__init__(...) initializes x; see help(type(x)) for signature
|
||||
|
|
||||
| ggeett__aarrrraayy(...)
|
||||
| Signature : (example.ExamplePythonTypes) -> list<unicode>[2]
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes) -> List[unicode[2]]
|
||||
| Return a C++ array
|
||||
|
|
||||
| ggeett__ddiicctt(...)
|
||||
@@ -44,8 +44,8 @@ class EExxaammpplleePPyytthhoonnTTyyppeess(__builtin__.object)
|
||||
| Return a Python dictionary
|
||||
|
|
||||
| ggeett__ddiicctt__22(...)
|
||||
| Signature : (example.ExamplePythonTypes) -> dict<unicode, unicode>
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes) -> Dict[unicode, unicode]
|
||||
| Return a C++ dictionary
|
||||
|
|
||||
| ggeett__lliisstt(...)
|
||||
@@ -54,8 +54,8 @@ class EExxaammpplleePPyytthhoonnTTyyppeess(__builtin__.object)
|
||||
| Return a Python list
|
||||
|
|
||||
| ggeett__lliisstt__22(...)
|
||||
| Signature : (example.ExamplePythonTypes) -> list<unicode>
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes) -> List[unicode]
|
||||
| Return a C++ list
|
||||
|
|
||||
| ggeett__sseett(...)
|
||||
@@ -69,53 +69,53 @@ class EExxaammpplleePPyytthhoonnTTyyppeess(__builtin__.object)
|
||||
| Return a C++ set
|
||||
|
|
||||
| ppaaiirr__ppaasssstthhrroouugghh(...)
|
||||
| Signature : (example.ExamplePythonTypes, (bool, unicode)) -> (unicode, bool)
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, Tuple[bool, unicode]) -> Tuple[unicode, bool]
|
||||
| Return a pair in reversed order
|
||||
|
|
||||
| pprriinntt__aarrrraayy(...)
|
||||
| Signature : (example.ExamplePythonTypes, list<unicode>[2]) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, List[unicode[2]]) -> None
|
||||
| Print entries of a C++ array
|
||||
|
|
||||
| pprriinntt__ddiicctt(...)
|
||||
| Signature : (example.ExamplePythonTypes, dict) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, dict) -> None
|
||||
| Print entries of a Python dictionary
|
||||
|
|
||||
| pprriinntt__ddiicctt__22(...)
|
||||
| Signature : (example.ExamplePythonTypes, dict<unicode, unicode>) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, Dict[unicode, unicode]) -> None
|
||||
| Print entries of a C++ dictionary
|
||||
|
|
||||
| pprriinntt__lliisstt(...)
|
||||
| Signature : (example.ExamplePythonTypes, list) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, list) -> None
|
||||
| Print entries of a Python list
|
||||
|
|
||||
| pprriinntt__lliisstt__22(...)
|
||||
| Signature : (example.ExamplePythonTypes, list<unicode>) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, List[unicode]) -> None
|
||||
| Print entries of a C++ list
|
||||
|
|
||||
| pprriinntt__sseett(...)
|
||||
| Signature : (example.ExamplePythonTypes, set) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, set) -> None
|
||||
| Print entries of a Python set
|
||||
|
|
||||
| pprriinntt__sseett__22(...)
|
||||
| Signature : (example.ExamplePythonTypes, set<unicode>) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, Set[unicode]) -> None
|
||||
| Print entries of a C++ set
|
||||
|
|
||||
| tthhrrooww__eexxcceeppttiioonn(...)
|
||||
| Signature : (example.ExamplePythonTypes) -> NoneType
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes) -> None
|
||||
| Throw an exception
|
||||
|
|
||||
| ttuuppllee__ppaasssstthhrroouugghh(...)
|
||||
| Signature : (example.ExamplePythonTypes, (bool, unicode, int)) -> (int, unicode, bool)
|
||||
|
|
||||
| Signature : (example.ExamplePythonTypes, Tuple[bool, unicode, int]) -> Tuple[int, unicode, bool]
|
||||
| Return a triple in reversed order
|
||||
|
|
||||
| ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user