Skip to content

Commit f4b6687

Browse files
authored
Fix warnings spotted in prototype datasets tests (#4668)
* fix category file inclusion * fix deprecated import
1 parent a3541eb commit f4b6687

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def run(self):
466466
license="BSD",
467467
# Package info
468468
packages=find_packages(exclude=("test",)),
469-
package_data={package_name: ["*.dll", "*.dylib", "*.so", "*.categories"]},
469+
package_data={package_name: ["*.dll", "*.dylib", "*.so", "prototype/datasets/_builtin/*.categories"]},
470470
zip_safe=False,
471471
install_requires=requirements,
472472
extras_require={

torchvision/prototype/datasets/utils/_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pathlib
66
import textwrap
77
import warnings
8-
from collections import Mapping
8+
from collections.abc import Mapping
99
from typing import (
1010
Any,
1111
Callable,

0 commit comments

Comments
 (0)