suppress errors in vision - batch 1

Differential Revision: D25497975

fbshipit-source-id: 9f7aa8d1dd31fa62a428321394d8c97b2d9d937d
This commit is contained in:
generatedunixname89002005307016
2020-12-11 12:45:33 -08:00
committed by Facebook GitHub Bot
parent d6412c94dc
commit 1b82388ab8
5 changed files with 10 additions and 0 deletions

View File

@@ -201,6 +201,8 @@ def load_obj(
None.
"""
data_dir = "./"
# pyre-fixme[6]: Expected `Union[typing.Type[typing.Any],
# typing.Tuple[typing.Type[typing.Any], ...]]` for 2nd param but got `Any`.
if isinstance(f, (str, bytes, os.PathLike)):
# pyre-fixme[6]: Expected `_PathLike[Variable[typing.AnyStr <: [str,
# bytes]]]` for 1st param but got `Union[_PathLike[typing.Any], bytes, str]`.