Skip to content

Commit 7736def

Browse files
committed
fix linting errors
1 parent 32abdee commit 7736def

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/rcsss/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ class SceneData(TypedDict):
2828

2929
for _ in scenes.values():
3030
if not _["xml"].exists():
31-
warn(f"Missing XML scene file {str(_['xml'])}")
31+
warn(f"Missing XML scene file {_['xml']}", stacklevel=2)
3232
if not _["mjb"].exists():
33-
warn(f"Missing mjb scene file {str(_['mjb'])}")
34-
for urdf in _["urdfs"].values():
35-
if not urdf.exists():
36-
warn(f"Missing urdf file {str(urdf)}")
33+
warn(f"Missing mjb scene file {_['mjb']}", stacklevel=2)
34+
for __ in _["urdfs"].values():
35+
if not __.exists():
36+
warn(f"Missing urdf file {__}", stacklevel=2)
3737

3838
# make submodules available
3939
__all__ = ["__doc__", "__version__", "common", "hw", "sim", "camera", "scenes", "control", "envs"]

0 commit comments

Comments
 (0)