zhPavel

Results 8 comments of zhPavel

We should remove support for Optional without arguments

There is no need for the decorator, all descendants could be collected via ``.__subclasses__()``

Does not apply to the new major version

We should add provider raising `CannotProvide` with note that this type has ``__init__`` of ``object``

I think there is a lack of tests and implementation for handling ``TypeVarTuple``. I have added a comment to the original issue, which includes an implementation for this feature.

The implementation can be based on this snippet: ```python import ast from types import ModuleType import inspect from typing import Sequence def _is_type_checking_condition(node: ast.expr) -> bool: return True # add...

@sobolevn Hello! Thank you for your contribution! The main purpose of these examples is demonstration of code behavior, I think that such additions make readability worse. If you are interesting...