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

annotation compatibility with earlier python versions #138

Merged
merged 1 commit into from
Dec 3, 2022

Conversation

knmcguire
Copy link
Collaborator

@knmcguire knmcguire commented Dec 2, 2022

Got the following error with galactic and python 3.8 when I tried out ros2 launch crazyflie launch.py backend:=sim

[crazyflie_server-4]     def uploadTrajectory(self, trajectoryId: int, pieceOffset: int, pieces: list[TrajectoryPolynomialPiece]):                                                                              
[crazyflie_server-4] TypeError: 'type' object is not subscriptable 

This incompatibility with pythonversions before 3.9 should fix that by adding

from __future__ import annotations

@whoenig
Copy link

whoenig commented Dec 2, 2022

Looks good - sorry about that!

@knmcguire knmcguire merged commit faca614 into main Dec 3, 2022
boomer319 pushed a commit to boomer319/verrueckterschwarm2 that referenced this pull request Nov 25, 2023
annotation compatibility with earlier python versions
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