Alex Waygood

Results 901 comments of Alex Waygood

It seems like this would be _very_ disruptive for typeshed: New hits from running typeshed's `stubtest_stdlib.py`, with this PR checked out, relative to mypy master ```diff diff --git a/old_hits.txt b/new_hits.txt...

Another test that it might be useful to add: ```diff diff --git a/mypy/test/teststubtest.py b/mypy/test/teststubtest.py index d6b7affb7..3a5bef614 100644 --- a/mypy/test/teststubtest.py +++ b/mypy/test/teststubtest.py @@ -885,6 +885,33 @@ class StubtestUnit(unittest.TestCase): error="B2.a", ) +...

Linking to existing resources in both places sounds great. Tbh I'd also love to see a typing HOWTO in the python.org docs (and would be happy to co-write it with...

I'm afraid I'm only a triager here, and mypyc is one of the areas of mypy I know least about, so I'm probably not the person you want to be...

97littleleaf11, ichard26 or JukkaL might be interested. (ichard26 isn't a core dev, but he's made several mypyc contributions and uses mypyc for compiling `black`.) But we're all volunteers with limited...

I like this idea! It would reduce the need for PRs like https://github.com/python/cpython/pull/29355, which corrects an annoying inconsistency between the stub file and the runtime code, but is unlikely to...

That's the use case for making `singledispatchmethod` generic in the stubs, of course. But I, for one, have no real use case for being able to parameterize `singledispatchmethod` at runtime,...

I think we might be talking at cross purposes 🙂 As I said in my first message in this thread, I agree with your case — I like your idea!...

See here for some related recent discussion: https://discuss.python.org/t/concern-about-pep-585-removals/15901

Ah, this patch fixes some false positives where mypy complains about enums-with-no-members being unsubclassable, but there are still some issues: ```python from enum import Enum class Foo(Enum): x = classmethod(lambda...