Skip to content

Commit

Permalink
add python 2 compatible function annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
TranBrian10 committed May 15, 2018
1 parent 66ee53d commit d91e722
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PythonClient/AirSimClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ def hover(self):
# query vehicle state
def getMultirotorState(self):
return MultirotorState.from_msgpack(self.client.call('getMultirotorState'))
getMultirotorState.__annotations__ = {'return': MultirotorState}
def getPosition(self):
return Vector3r.from_msgpack(self.client.call('getPosition'))
def getVelocity(self):
Expand Down

0 comments on commit d91e722

Please sign in to comment.