Hugo van Kemenade

Results 1450 comments of Hugo van Kemenade

Closing due to inactivity, but do let me know if you'd like help and we can re-open.

Thanks for the suggestion, but I'm not too clear on the benefit here, and it's introducing (unused) duplication. I think the current situation is fine, the `__init__` file isn't particularly...

Closing due to inactivity, but we can re-open later if necessary.

I wonder if something like this would work? Would it cache too often? ```diff +from functools import lru_cache +@lru_cache(maxsize=None) def _can_do_colour( *, no_color: bool | None = None, force_color: bool...

That message is coming from pip, not ISStreamer. It means your pip version is running with Python 2.6. It sounds like your system is still picking up the default 2.6...

Thank you for the PR! Just a quick note to say it's not forgotten, and I'll have a look soon but it might be after PyCon US.

Interesting idea! I think there are too many functions altogether, some with too generic names, to add them all. We could do just a few, but it might be better...

What it's doing is rounding to years, when years >= 2: ```pycon >>> import humanize >>> from datetime import timedelta >>> for year in range(5): ... humanize.naturaldelta(timedelta(days=(year+0.6) * 365), months=True)...

I guess one idea is to add a new option to make the cutoff configurable, and (I expect) use it to replace the 1 in `elif years == 1`. That...

Previously reported at the old repo: * https://github.com/jmoiron/humanize/issues/116 * https://github.com/jmoiron/humanize/issues/186 * https://github.com/jmoiron/humanize/issues/143 But those are closed, so we let's use this new issue. There's an old PR that started work...