Neil Girdhar
Neil Girdhar
A related suggestion I just learned about is [contextlib.suppress](https://docs.python.org/3/library/contextlib.html#contextlib.suppress), which replaces ```python try: Y # ... except X: pass ``` with ```python with contextlib.suppress(X): Y # ... ``` Should this...
@JelleZijlstra Yup, I just learned about that [here](https://github.com/microsoft/pyright/issues/3382). It's not too big a deal since it's very rare that you decorate class methods, but maybe after `classmethod` is broadened they...
@Conchylicultor Any chance you could review this one line change?
This tiny pull request would repair a dozen type errors in my code: ``` cmm/problem/deduction.py:64: error: Expected type in class pattern; found "Any" [misc] cmm/problem/deduction.py:65: error: Statement is unreachable [unreachable]...
@tupui Yes, that's a very exciting change :smile: . I'm hoping that it would be possible to fix its `rvs` and add vectorization to it before there are backwards compatibility...
@mdhaber Yes, definitely! Please add any more you find, and I'll add them to the list. I didn't find the Wishart problem because I haven't added it to Efax yet.
@mdhaber Makes sense, thank you for keeping everything organized. > The univariate distribution infrastructure does not really support circular distributions I totally agree, which is why I opened #6038 6...
@mdhaber Totally agree with everything you said. > they should be classes that get instantiated with shape parameters. What I ended up doing in Efax is having all distributions (univariate...
If you want to link the PEP 673 issue, it's here: https://github.com/python/mypy/issues/11871
Is it possible, one day, to make a MyPy plugin that can answer the question: "is float a subtype of Real?" Is it possible for plugins to be aware of...