lockss-pybasic 0.1.0.dev10__tar.gz → 0.1.0.dev12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lockss-pybasic
3
- Version: 0.1.0.dev10
3
+ Version: 0.1.0.dev12
4
4
  Summary: Basic Python utilities
5
5
  License: BSD-3-Clause
6
6
  Author: Thib Guicherd-Callin
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lockss-pybasic"
3
- version = "0.1.0-dev10"
3
+ version = "0.1.0-dev12"
4
4
  description = "Basic Python utilities"
5
5
  authors = [
6
6
  { name = "Thib Guicherd-Callin", email = "thib@cs.stanford.edu" }
@@ -36,4 +36,4 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36
36
  POSSIBILITY OF SUCH DAMAGE.
37
37
  '''.strip()
38
38
 
39
- __version__ = '0.1.0-dev10'
39
+ __version__ = '0.1.0-dev12'
@@ -116,7 +116,7 @@ class BaseCli(Generic[ModelT], ABC):
116
116
 
117
117
 
118
118
  def _matchy_length(values: Dict[str, Any], *names: str) -> int:
119
- return len([values[name] for name in names if values[name]])
119
+ return len([name for name in names if values.get(name)])
120
120
 
121
121
 
122
122
  def at_most_one(values: Dict[str, Any], *names: str):