suppress errors in fbcode/vision - batch 2

Differential Revision: D28962863

fbshipit-source-id: 7acc8e2f08ea7a94294647431561ff2cfd52a97d
This commit is contained in:
Pyre Bot Jr 2021-06-08 11:16:10 -07:00 committed by Facebook GitHub Bot
parent f00ef66727
commit ac6c07fa43

View File

@ -207,11 +207,7 @@ def load_obj(
None. None.
""" """
data_dir = "./" 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)): 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]`.
data_dir = os.path.dirname(f) data_dir = os.path.dirname(f)
if path_manager is None: if path_manager is None:
path_manager = PathManager() path_manager = PathManager()