Skip to content

Commit 8af819a

Browse files
committed
Fix type literals
1 parent 6c406f0 commit 8af819a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

roboticstoolbox/robot/BaseRobot.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ def get_link_scene_node():
21732173
# --------------------------------------------------------------------- #
21742174

21752175
def _get_graphical_backend(
2176-
self, backend: Union[L["swift", "pyplot", "pyplot2"], None] = None
2176+
self, backend: Union[L["swift", "pyplot", "pyplot2"], None] = None # noqa
21772177
) -> Union[Swift, PyPlot, PyPlot2]:
21782178
default = self.default_backend
21792179

@@ -2234,7 +2234,7 @@ def _get_graphical_backend(
22342234
def plot(
22352235
self,
22362236
q: ArrayLike,
2237-
backend: Union[L["swift", "pyplot", "pyplot2"], None] = None,
2237+
backend: Union[L["swift", "pyplot", "pyplot2"], None] = None, # noqa
22382238
block: bool = False,
22392239
dt: float = 0.050,
22402240
limits: Union[ArrayLike, None] = None,
@@ -2393,9 +2393,9 @@ def plot(
23932393
def fellipse(
23942394
self,
23952395
q: ArrayLike,
2396-
opt: L["trans", "rot"] = "trans",
2397-
unit: L["rad", "deg"] = "rad",
2398-
centre: Union[L["ee"], ArrayLike] = [0, 0, 0],
2396+
opt: L["trans", "rot"] = "trans", # noqa
2397+
unit: L["rad", "deg"] = "rad", # noqa
2398+
centre: Union[L["ee"], ArrayLike] = [0, 0, 0], # noqa
23992399
) -> EllipsePlot:
24002400
"""
24012401
Create a force ellipsoid object for plotting with PyPlot
@@ -2444,9 +2444,9 @@ def fellipse(
24442444
def vellipse(
24452445
self,
24462446
q: ArrayLike,
2447-
opt: L["trans", "rot"] = "trans",
2448-
unit: L["rad", "deg"] = "rad",
2449-
centre: Union[L["ee"], ArrayLike] = [0, 0, 0],
2447+
opt: L["trans", "rot"] = "trans", # noqa
2448+
unit: L["rad", "deg"] = "rad", # noqa
2449+
centre: Union[L["ee"], ArrayLike] = [0, 0, 0], # noqa
24502450
scale: float = 0.1,
24512451
) -> EllipsePlot:
24522452
"""
@@ -2565,8 +2565,8 @@ def plot_fellipse(
25652565
block: bool = True,
25662566
fellipse: Union[EllipsePlot, None] = None,
25672567
limits: Union[ArrayLike, None] = None,
2568-
opt: L["trans", "rot"] = "trans",
2569-
centre: Union[L["ee"], ArrayLike] = [0, 0, 0],
2568+
opt: L["trans", "rot"] = "trans", # noqa
2569+
centre: Union[L["ee"], ArrayLike] = [0, 0, 0], # noqa
25702570
jointaxes: bool = True,
25712571
eeframe: bool = True,
25722572
shadow: bool = True,
@@ -2661,8 +2661,8 @@ def plot_vellipse(
26612661
block: bool = True,
26622662
vellipse: Union[EllipsePlot, None] = None,
26632663
limits: Union[ArrayLike, None] = None,
2664-
opt: L["trans", "rot"] = "trans",
2665-
centre: Union[L["ee"], ArrayLike] = [0, 0, 0],
2664+
opt: L["trans", "rot"] = "trans", # noqa
2665+
centre: Union[L["ee"], ArrayLike] = [0, 0, 0], # noqa
26662666
jointaxes: bool = True,
26672667
eeframe: bool = True,
26682668
shadow: bool = True,
@@ -2756,7 +2756,7 @@ def teach(
27562756
limits: Union[ArrayLike, None] = None,
27572757
vellipse: bool = False,
27582758
fellipse: bool = False,
2759-
backend: Union[L["pyplot", "pyplot2"], None] = None,
2759+
backend: Union[L["pyplot", "pyplot2"], None] = None, # noqa
27602760
) -> Union[PyPlot, PyPlot2]:
27612761
"""
27622762
Graphical teach pendant
@@ -2923,7 +2923,7 @@ def dotfile(
29232923
self,
29242924
filename: Union[str, IO[str]],
29252925
etsbox: bool = False,
2926-
ets: L["full", "brief"] = "full",
2926+
ets: L["full", "brief"] = "full", # noqa
29272927
jtype: bool = False,
29282928
static: bool = True,
29292929
):

0 commit comments

Comments
 (0)