Tin Tvrtković
Tin Tvrtković
Hello again. I've been playing around with learning Mypy internals over the weekend to see if this can be done. First of all, I don't really understand how the Mypy...
Having figured out how the Mypy attrs plugin works a little, I've done some work on this: https://github.com/python/mypy/pull/10467
Thanks David, no worries - we all have lives. I'd be eager to receive feedback whenever.
The problem with tacking methods onto an existing class is we can't add "slotness" to an existing class, right? I'm more interested in the user-facing API than the internals; there's...
> My fear is just that the filth might just…break eventually? It seems like playing with internals that may also have other side-effects like confusing PyPy's JIT etc. :| I...
The original problem with metaclasses is that they aren't composable, right? Our current problem is replacing the class won't allow our users to use the metaclass they want. But switching...
Unfortunately, I think the approach of recreating the class is fundamentally incompatible with metaclasses. We might make it work in some cases but not in all cases. So maybe we...
What if we could make this work: ``` @attr.s class C: attr.slots() # Could take parameters, like attr.slots(weakref=True) a = attr.ib() ``` Option two: ``` @attr.s class C: __slots__ =...
Pyright has no plugin interface, so there's not much we can do. Maybe you can open an issue over there?
I agree with @layday in that in my experience pyright rules editor support/autocompletion, but mypy rules the linting space. I disagree about pyright not being a bottleneck. For better or...