Skip to content

Commit 2110c96

Browse files
committed
fix sympy typing
1 parent eb0a484 commit 2110c96

File tree

1 file changed

+4
-6
lines changed
  • roboticstoolbox/robot

1 file changed

+4
-6
lines changed

roboticstoolbox/robot/ET.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@
2121
from fknm import ET_T, ET_init, ET_update
2222
from spatialmath.base import getvector
2323
from spatialmath import SE3, SE2
24-
from typing import Optional, Callable, Union
24+
from typing import Optional, Callable, Union, TYPE_CHECKING, Type, NewType
2525

2626
ArrayLike = Union[list, ndarray, tuple, set]
2727

28-
try: # pragma: no cover
28+
if TYPE_CHECKING:
2929
import sympy
3030

31-
# Sym = sympy.Expr
3231
Sym = sympy.core.symbol.Symbol
33-
34-
except ImportError: # pragma: no cover
35-
Sym = float
32+
else:
33+
Sym = None
3634

3735

3836
class BaseET:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy