Commit 45c0ff3
committed
fix(decoration): cast mode.device to str for mypy return-value check
CI mypy (stricter torch stubs) catches that mode.device returns
torch.device, not str. Explicit str() cast satisfies the Optional[str]
return type annotation.1 parent b5da8b8 commit 45c0ff3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments