Skip to content
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

Fix typeguard error #149

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Fix typeguard error #149

merged 1 commit into from
Oct 11, 2023

Conversation

jaagut
Copy link
Contributor

@jaagut jaagut commented Sep 18, 2023

For typeguard==3.0.2, default_value: any raised a TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union during colcon build of a Python node using this library. Using the Any from the typing module fixed this issue.

Yes, this problem does not occur with the typeguard version provided by apt (2.2.2), but could also occur if Ubuntu bumps that version or for other users with a newer local pip install of typeguard.

For typeguard==3.0.2, `default_value: any` raised a `TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union` during colcon build of a Python node using this library.
Using the `Any` from the `typing` module fixed this issue.

Yes, this problem does not occur with the typeguard version provided by apt (2.2.2), but could also occur if Ubuntu bumps that version or for other users with a newer local pip install of typeguard.
@tylerjw tylerjw merged commit d350f4b into PickNikRobotics:main Oct 11, 2023
7 checks passed
@tylerjw
Copy link
Contributor

tylerjw commented Oct 11, 2023

I'm sorry I didn't see this sooner. I merged it.

@ghost ghost mentioned this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants