Coverage for tests/fixtures/booleans.py: 100.00%
4 statements
« prev ^ index » next coverage.py v7.6.3, created at 2024-10-17 17:18 +0200
« prev ^ index » next coverage.py v7.6.3, created at 2024-10-17 17:18 +0200
1from duty import duty
4@duty
5def boolean(ctx, zero: bool = True):
6 ctx.run(lambda: 0 if zero else 1)