Bartosz Sławecki
Bartosz Sławecki
> @bswck Interesting. Won't `import typing_extensions` fail at runtime if it's not present, or is there a way to avoid that? Won't fail if we don't perform the import at...
I'll take it along with #34. 🚀
I'm yearning for some automatic tests of those scripts. WDYT @pawamoy
> Wouldn't it be enough to just test the output of our Python code that generates words? Definitely no, I strongly feel we need white-box regression tests of completions working...
> I opened [pypa/pipx#1604](https://github.com/pypa/pipx/issues/1604) and [astral-sh/uv#11354](https://github.com/astral-sh/uv/issues/11354), let see what people think 😊 Related https://github.com/pawamoy/git-changelog/issues/66#issuecomment-1889402715
> Is there anything left to be done apart from actually merging this fix? Yes: https://github.com/python/mypy/pull/19696/files#r2300505910
After looking at it now, `ContextDecorator` has an orig base of `AbstractContextManager[_T_co, bool | None]`, therefore it logically implies that `ContextDecorator.__call__` always returns an optional value (despite it not being...
Ideally it would be specifiable whether a context manager swallows exceptions, since the type checker can't really see that. Something like `@contextmanager(swallows_exceptions=True)`? I don't like the idea of changing this...
I got it working with the suggested patch: ```py from collections.abc import Generator from contextlib import contextmanager, suppress from typing import TYPE_CHECKING, overload, reveal_type @contextmanager def zero_division_to_none() -> Generator[None]: with...
Tracking in #14439, we'll see where it can go.