We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found this while running on taichi:
taichi
class Program: def create_ndarray(self, layout: Layout = <Layout.NULL: 2>) -> Ndarray: ...
This expression could be made syntactically correct just by extracting out the __str__ repr of the enum value like:
__str__
class Program: def create_ndarray(self, layout: Layout = Layout.NULL) -> Ndarray: ...
Should we do this by default?
The text was updated successfully, but these errors were encountered:
Actually it seems like this is already done:
pybind11-stubgen/tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/enum.pyi
Lines 63 to 65 in adbd6a3
Sorry, something went wrong.
It seems like
--enum-class-locations="Layout:taichi._lib.core.taichi_python"
was the key! Should have read the error message closer!
No branches or pull requests
I found this while running on
taichi
:This expression could be made syntactically correct just by extracting out the
__str__
repr of the enum value like:Should we do this by default?
The text was updated successfully, but these errors were encountered: