in tools/upgrade/filesystem.py [0:0]
def visit_Call(self, node: builtin_ast.Call) -> None:
target_fields = node.keywords
name = None
check_types = False
is_strict = False
uses_pyre = True
has_typing_settings = False
for field in target_fields:
name = self._get_name(field, name)
check_types = self._get_check_types(field, check_types)
is_strict = self._get_strict(field, is_strict, uses_pyre)
uses_pyre = self._get_uses_pyre(field, uses_pyre)
has_typing_settings = self._get_has_typing_settings(
field, has_typing_settings
)
if name and has_typing_settings and (not self._pyre_only or uses_pyre):
self._targets.append(Target(name, is_strict, uses_pyre, check_types))
self._contains_strict = self._contains_strict or is_strict