Explicitly call to_list on depset.

This is in preparation to roll out the --incompatible_depset_is_not_iterable flag.
This commit is contained in:
Tobias Werth 2018-12-05 14:40:05 +01:00 committed by GitHub
parent daf5137022
commit 914b9409d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ def _make(elements = None):
A set containing the passed in values.
"""
elements = elements if elements else []
if type(elements) == type(depset()):
elements = elements.to_list()
return struct(_values = {e: None for e in elements})
def _copy(s):