From 24540ebf7f620388711d71c7535d886455b080f9 Mon Sep 17 00:00:00 2001 From: giulero Date: Tue, 8 Nov 2022 11:55:13 +0100 Subject: [PATCH] Fix annotation --- src/liecasadi/so3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/liecasadi/so3.py b/src/liecasadi/so3.py index 9246631..ff3f457 100644 --- a/src/liecasadi/so3.py +++ b/src/liecasadi/so3.py @@ -4,6 +4,7 @@ import dataclasses from dataclasses import field +from typing import Union import casadi as cs import numpy as np @@ -113,7 +114,7 @@ def quaternion_derivative( self, omega: Vector, omega_in_body_fixed: bool = False, - baumgarte_coefficient: float = None, + baumgarte_coefficient: Union[float, None] = None, ): if baumgarte_coefficient is not None: