-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
Add python3-typeshed #40651
Add python3-typeshed #40651
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a pip only key we won't be able to make rclpy
(or any package released to the ROS build farm) depend on it. Does it still work for your purposes?
Ah ok. I should be able to switch it to the |
It looks like mypy on Debian, Ubuntu, and Fedora doesn't actually use a discrete "typeshed" package even if available, and rather bundles typeshed as |
The CI is failing because |
From what I can tell
|
Thanks for checking. Is my understanding correct in saying that your goal is to have the PyYAML stubs? I'm asking mainly because there is no I think it would be appropriate to go back to the There is precedent for this pattern in other packages in rosdep. Different distributions make different decisions regarding where to draw lines when separating subpackages. Boost is another example of where major distributions make different decisions. It's unfortunate that there is no Ubuntu package specifically for the PyYAML types because that's typically how we derive the name of the rosdep key, but I think |
Co-authored-by: Scott K Logan <[email protected]>
Co-authored-by: Scott K Logan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Debian: https://packages.debian.org/bookworm/python3-typeshed
- Fedora: https://packages.fedoraproject.org/pkgs/python-types-pyyaml/python3-types-pyyaml/
- Ubuntu: https://packages.ubuntu.com/jammy/amd64/python/python3-typeshed
- PyPI: https://pypi.org/project/types-PyYAML/
- Rhel: https://packages.fedoraproject.org/pkgs/python-types-pyyaml/python3-types-pyyaml/
Please add the following dependency to the rosdep database.
Package name:
python3-typeshed
Package Upstream Source:
https://github.com/python/typeshed
Purpose of using this:
In the process of accomplishing ros2/rclpy#1257 we need the types for pyyaml being used for mypy support.
The source is here:
https://packages.ubuntu.com/jammy/amd64/python/python3-typeshed
https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=python3-typeshed