Results 70 comments of Vasily Zakharov

I wonder if this `Sampled[]` and `Empty[]` things should be visible in `TypeWarning` printout when actual type mismatch occurs. Probably they are better to be removed at printing to not...

Yes, `mypy` definitely has various controls to work around this, and I totally agree this is low priority.

Normally type annotations for a library are important for public API, as they help to make sure that the code that uses that API is doing it correctly. Annotating everything...

I've got `setuptools` 59.6.0. Are you sure it's `setuptools`? I thought `pkg_resources` is a built-in package, it's located at `/usr/lib/python3/dist-packages`.

On latest `setuptools`, 68.2.0, I get another crash: ``` Traceback (most recent call last): File "/media/sf_d/WWPass/git/test.py", line 3, in import pkg_resources File "", line 1027, in _find_and_load File "", line...

For the legitimate error in latest `setuptools`, FYI: https://github.com/pypa/setuptools/pull/4044

Ok, https://github.com/pypa/packaging/pull/723

> It seems clear why this happens: The `_require_version_compare()` function is used as a decorator within the `Specifier` class. As the class hasn't been defined before the decorator is used,...

Maybe even ALL exceptions, except `TypeCheckError`, occurring in `typeguard`-generated code should be caught and replaced with warnings?