sobolevn

Results 1343 comments of sobolevn

It can work because of `get_dynamic_class_hook()`, but I am not sure this will be accepted as a type. Ok, we can try to populate `_USER_AUTH_MODEL` magic thing 🤔

I like this idea (I think that adding a hook is a must, however - otherwise, we will have too many errors in users' code).

I think we should, because it is a perfect use-case for it.

Multiple subtests seem better.

@Alexerson great work! 👍

In `typeshed` we ended up with multiple `Any` aliases: - `Unused`, when any argument can be passed, because it simply does nothing - `Incomplete`, when we use `Any` as a...

(I meant to click "Comment", not "Approve")

As far as I know - custom builtins are not supported. https://github.com/python/mypy/issues/12172 We can do something like: ```python _DjangoVersion4_1 = _DjangoVersion[4, 1] ``` Inside our plugin we can return `Literal[True]`...

`sys.version_info` check is hard-coded. This is why I thought about `Literal[True]` / `Literal[False]` hacks with analyzed dynamic types.