Bryan Forbes
Bryan Forbes
The next release of mypy (0.800) will [include a fix](https://github.com/python/mypy/pull/8847) for this, but I'm not sure when it will come out since 0.790 was just released today
My only suggestion would be to add a flag to optionally generate `easy-install.pth`. Right now, I'm using [a script](https://github.com/bryanforbes/Erasmus/blob/d73508a861712760d92f3c2b7426976b163ffc6c/fix-poetry.sh) to generate `easy-install.pth` and I have to add it to a...
One thing to note is that the handling of `Record` isn't quite what I'd like it to be yet. Currently, a user could do something like this: ```python class MyRecord(asyncpg.Record):...
Typing it as `Sequence[Record]` kind of works, but you'd still need a cast to go from `Sequence[Record]` to `Sequence[MyRecord]`. Combining `Sequence` with option 2 is better than `List` (since `Sequence`...
> Right. Well, my concern with the `record_class` parameter is that it could be very confusing to unknowing users. I understand the concern and share your concern. Would `record_type` be...
I've done quite a bit more work on the mypy plugin and have the following working: ```python import asyncpg import datetime import typing import typing_extensions class MyRecord(asyncpg.Record): foo: int bar:...
@elprans Thanks! There are still some places in the code where `# type: ignore` is being used. I've updated them to use the specific code(s) that can be used to...
@victoraugustolls I'll rebase and update this PR today
@victoraugustolls I finished the rebase, but there's an issue with Python 3.6 and `ConnectionMeta` + `Generic` related to https://github.com/python/typing/issues/449. I'll poke around with it this weekend and try to get...
@victoraugustolls I was able to come up with a solution for the metaclass issue in Python 3.6 (that won't affect performance on 3.7+), but I'd like to work on some...