certbot/certbot-apache/certbot_apache
ohemorange a57b29a276
[apache] Add type hints to apache configurator for mypy --strict (#10155)
I don't love the `Any` in that `Callable`, but I can't find a way to fix
it. In practice, it's either going to be `str` or `None`, but we pass an
`options` that's typed as `List[str] | str | None`, and one of the
functions has a header with a strict `str`. I tried various unions of
things and it wasn't working and I decided it's not worth it.

```
$ mypy --strict certbot-apache/certbot_apache/_internal/configurator.py 
Success: no issues found in 1 source file
```
2025-02-06 10:54:10 -08:00
..
_internal [apache] Add type hints to apache configurator for mypy --strict (#10155) 2025-02-06 10:54:10 -08:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
py.typed Add type annotations to the certbot package (part 1) (#9084) 2021-11-12 14:27:46 +11:00