I hereby claim:
- I am sirlantis on github.
- I am sirlantis (https://keybase.io/sirlantis) on keybase.
- I have a public key ASDNk7zM33MNfuJ9gVPaqGfpSRtnIErSwY2G1AclF_c87Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| Check if files end with a single newline. | |
| """ | |
| import argparse | |
| import io | |
| import logging | |
| import pathlib | |
| import sys | |
| from collections.abc import Iterator |
| class BooleanContainer(Container[_T]): | |
| """A container that supports boolean operations.""" | |
| def __init__( | |
| self, | |
| container: Container[_T] | None = None, | |
| predicate: Callable[[object], _T] | None = None, | |
| ) -> None: | |
| if container is not None: | |
| assert predicate is None, "Cannot specify both container and predicate" |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "deepdiff", | |
| # "editorconfig", | |
| # "pathspec", | |
| # "poetry-core", | |
| # "rich", | |
| # "tomlkit", | |
| # "typer", |