deepvariant/testing/flagsaver.py
def FlagSaver(func):
  """Saves/restores flag values after decorated method completes."""
  if inspect.isclass(func):
    raise TypeError('@flagsaver.FlagSaver cannot be applied to a class.')
  return _FlagSaver(func, {})
Saves/restores flag values after decorated method completes.
Saves/restores flag values after decorated method completes.
Saves / restores flag values after decorated method completes .
def FlagSaver(func):
  if inspect.isclass(func):
    raise TypeError('@flagsaver.FlagSaver cannot be applied to a class.')
  return _FlagSaver(func, {})
def FlagSaver ( func ) : if inspect . isclass ( func ) : raise TypeError ( '@flagsaver.FlagSaver cannot be applied to a class.' ) return _FlagSaver ( func , { } )
Saves/restores flag values after decorated method completes.
Saves / restores flag values after decorated method completes .
"""Saves/restores flag values after decorated method completes."""
func