Skip to content

Commit 4149045

Browse files
committed
add type-var ignore for the recently introduced mypy error
1 parent 3db3044 commit 4149045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/prototype/datasets/utils/_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _getattr_closure(obj: Any, *, attrs: Sequence[str]) -> Any:
8686
return obj
8787

8888

89-
def _path_attribute_accessor(path: pathlib.Path, *, name: str) -> D:
89+
def _path_attribute_accessor(path: pathlib.Path, *, name: str) -> D: # type: ignore[type-var]
9090
return cast(D, _getattr_closure(path, attrs=name.split(".")))
9191

9292

0 commit comments

Comments
 (0)