suppress errors in fbcode/vision - batch 2

Differential Revision: D35590813

fbshipit-source-id: 0f35d7193f839a41f3cac18bf20236b815368f19
This commit is contained in:
Pyre Bot Jr 2022-04-12 15:56:12 -07:00 committed by Facebook GitHub Bot
parent b1ff9d9fd4
commit b79764ea69

View File

@ -277,6 +277,8 @@ def _unwrap_type(tp):
def _get_dataclass_field_default(field: Field) -> Any:
if field.default_factory is not MISSING:
# pyre-fixme[29]: `Union[dataclasses._MISSING_TYPE,
# dataclasses._DefaultFactory[typing.Any]]` is not a function.
return field.default_factory()
elif field.default is not MISSING:
return field.default