Skip to content

Commit

Permalink
style: add type hint to read_gltf's loaded
Browse files Browse the repository at this point in the history
try to appease mypy type checking gods
  • Loading branch information
Olaf-Wolf3D committed May 8, 2024
1 parent 0cf6e36 commit 63a95bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/readyplayerme/meshops/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def read_gltf(filename: str | Path) -> Mesh:
:return: The loaded mesh object.
"""
try:
loaded = trimesh.load(filename, process=False, force="mesh")
loaded: trimesh.Trimesh = trimesh.load(filename, process=False, force="mesh")
except ValueError as error:
msg = f"Error loading {filename}: {error}"
raise OSError(msg) from error
Expand Down

0 comments on commit 63a95bd

Please sign in to comment.