sizmailov / pybind11-stubgen

Generate stubs for python modules
Other
232 stars 47 forks source link

Unrecognized time_point type #80

Closed inie0722 closed 2 years ago

inie0722 commented 2 years ago
error info:
Generated stubs signature is degraded to `(*args, **kwargs) -> typing.Any` for
[2022-08-05 11:28:03,390] {__init__.py:135} WARNING - def Try(self: PyQTP.Quote.OrderBookEvent) -> std::optional<std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > >: ...
[2022-08-05 11:28:03,390] {__init__.py:136} WARNING -                                                                                                                                                           ^-- Invalid syntax

cpp code
std::optional<std::chrono::time_point<std::chrono::system_clock>> Try();
sizmailov commented 2 years ago

This is intended behaviour for a non-bound type.