Erik Welch

Results 185 comments of Erik Welch

btw, I'm currently dyslexic/confused when it comes to single ` vs double `` when writing docs. Please check the usage of them in this PR and guide me in the...

This currently gets tested during the "test / dispatch" CI run. It actually inspects the return type. And, yeah, as docs get updated, the sets will need updated too. The...

Thanks for running that experiment @rossbar. I'm glad to be able to compare. > The conclusion I draw from the above experiment is that numpydoc validation is sufficient to catch...

Actually, I take back what I said. There is a difference between yielding and returning an iterator. Consider: ```python def f1(): raise ValueError yield from [1, 2] def f2(): raise...

Alright, I grouped the function names by whether they are generator functions, return generators, or return iterators. Generator functions is the largest group and should definitely use "Yields" (also, numpydoc...

:+1: It looks like `inspect.isgeneratorfunction` is actually pretty limited. It doesn't work on wrapped functions. It only unwraps `__func__` attribute of methods and partial objects. Notably, it ignores `__wrapped__`. It...

`zip(x, y, strict=True)` is pretty handy ([see here](https://docs.python.org/3.10/library/functions.html#zip)).

Thanks for taking a look and asking great questions! > How would this deal with subclasses, eg. DiGraph, MultiGraph without loss of information? Do you mean user-subclasses such as `class...

I'm unable to reproduce. @jim22k added this test back in #6628. I expect the following error: ```python-traceback TypeError: Unable to convert inputs and run intersection. intersection() has networkx and nx-loopback...