Getting error trying to use Axis as a param to Hub initialization #2164
Replies: 3 comments 3 replies
-
|
This is just a bug in the type hints. It should still work if you actually run the program.
And the parameters should accept any |
Beta Was this translation helpful? Give feedback.
-
|
As a possible workaround, can we use the @no_type_check decorator, which requires us to use |
Beta Was this translation helpful? Give feedback.
-
|
Well, there you go. I learned something new about python today! Thanks :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all -
When I try to initialize the Spike Prime Hub, it won't accept Axis.Z as a parameter in VSCode.
I get this error:
I searched and found this answer: https://github.com/orgs/pybricks/discussions/1396
But that isn't working...
Here are all my imports:
I feel like I am missing something simple. I'm relatively new to Python, so it is probably something easy....
Beta Was this translation helpful? Give feedback.
All reactions