Neil Girdhar

Results 471 comments of Neil Girdhar

Should probably link the addition of `Not` as the ideal solution: https://github.com/python/typing/issues/801

@eggplants You're very welcome to lift everything from my pull request into the stubs if you want !

@rhelmot @fmagin This is awesome!! I was wondering where the type annotations were coming from in the latest edition of PyRIght. Thank you very much for taking initiative and getting...

I think the stubs being in the typeshed is probably an excellent outcome for now. There is a big difference in development time. In the typeshed, * The review process...

> To support that syntax, the `Graph` class only needs to define `__class_getitem__` method. Inline annotations is irrelevant. Right, exactly. That's why I was suggesting inheriting from `Generic[Node]` to provide...

> Unfortunately, position-only parameter syntax: "/" is not available until python 3.8 and I don't see any way to get 3.7 to use it. > Does anyone know a way...

> through a proper deprecation cycle to warn users. Good idea. Probably the sooner the better?

Whoa that is a mess. Just looking at the onednn-softmax, it only supports `axis=-1` (it's hard-coded).

This idea is the main motivation for the desire to annotate exceptions. The latter idea has been discussed many times on the python-discuss boards, and I think it would be...

> Something as simple as just telling me what exceptions can be thrown from a function or method would be helpful. That's not "simple". > Although I will concede, littering...