Peilonrayz

Results 13 comments of Peilonrayz

@jaklan Using `# fmt: on/off` is not a reasonable solution for a couple of reasons. 1. I want black to format the inner parts of the comprehension. Say someone uses...

Please let the maintainers of black speak on behalf of black.

I've not read black's code but I can think of two simpler ways to add support in black: 1. Multiply the character length black sees for the comprehension by a...

@ilevkivskyi I'm not too sure what better name to use. My, rather simple, plan is: 1. Which functions from my library would you want/not want? Would you want any of...

I'll only include new functions publicly, these functions require the duplicate functions to work and so I'll hide them in a sub package, `typing_inspect.v2`. This will result in duplicate code,...

@ilevkivskyi Unfortunately this is taking longer than expected. I've been focusing on improving typing_inspect_lib's code quality, currently through linters and coverage.py, which is at ~97%. Only the documentation seems to...

Currently I too use an internal map in `typing_inspect_lib`. as I couldn't figure out a nicer way to implement this in Python 3.7. This may be privately available in `typing_inspect`...

`T` doesn't hold any of the cool information you think it does, it's `L`'s instance that does. You may want to have a look at the alternates to `get_args` and...

It doesn't look like this is at all possible to do in the constructor, in Python 3.7.2 at least. This is as `typing_inspect.get_generic_type(self)` returns `` not `__main__.L[int, str]`. Otherwise it...

This is as the arguments are on the base class. Using `get_generic_bases` works fine. ```python from typing import List, TypeVar import typing_inspect T = TypeVar("T") class L(List[T]): def f(self) ->...