Add scalar
keyword argument to flatten
#3283
Merged
scalar
keyword argument to flatten
#3283