[BUG] Generate proper Python stubs
bug
[//]: # "SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved."
[//]: # "SPDX-License-Identifier: Apache-2.0"
[//]: # ""
[//]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[//]: # "you may not use this file except in compliance with the License."
[//]: # "You may obtain a copy of the License at"
[//]: # "http://www.apache.org/licenses/LICENSE-2.0"
[//]: # ""
[//]: # "Unless required by applicable law or agreed to in writing, software"
[//]: # "distributed under the License is distributed on an 'AS IS' BASIS"
[//]: # "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."
[//]: # "See the License for the specific language governing permissions and"
[//]: # "limitations under the License."
**Describe the bug**
A clear and concise description of the bug.
Python API doesn't have stubs which means that IDEs have no idea what functions are even available.
**Steps/Code to reproduce bug**
Follow this guide
http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a
minimal bug report. This helps us reproduce the issue you're having and resolve
the issue more quickly.
**Expected behavior**
A clear and concise description of what you expected to happen.
When I type `cvcuda.` in my IDE (like VS Code) I expect it to show all the options for the API including the docstrings that match the help text which I can see when running `help(cvcuda.osd_into)` or whatever for any functions. Also `osd_into` in particular isn't even documented on the API website but it's an important and useful feature (don't remove the function!).
**Environment overview (please complete the following information)**
- Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)] installed w poetry and pyenv. IDE VS Code
- Method of cuDF install: [Docker, pip, or from source] poetry
- If method of install is [Docker], provide `docker pull` & `docker run` commands used
**Environment details**
Please run and paste the output of the `cvcuda/print_env.sh` script here, to gather any other relevant environment details
That file doesn't exist in the python installation from pypi cvcuda-cu12 using version 0.16.0 so I can't even run this
**Additional context**
Add any other context about the problem here.
In my pyenv, these are the cvcuda files that I see:
<img width="325" height="400" alt="Image" src="https://github.com/user-attachments/assets/8f4e0b78-5216-4d51-8ddd-105d55e35170" />
and this is what is in the __init__
<img width="972" height="492" alt="Image" src="https://github.com/user-attachments/assets/22457a38-2ca1-4d98-befa-7274341736cc" />
0 条评论