Ivan Levkivskyi

Results 455 comments of Ivan Levkivskyi

> The code works btw, so it's really `mypy` that is not able to understand. `x: int = 'no way'` also works at runtime so not really an explanation. Have...

OK, the latter error can be fixed by adding support for `collection_class`. On one hand this doesn't look like high priority (there is a simple workaround like adding correct annotation...

```python repositories: RelationshipProperty[Set['Repository']] = relationship('Repository', back_populates="installation", uselist=True, collection_class=set) # type: ignore ```

Unfortunately, we didn't have much time for this lately. @JukkaL what do you think we can do?

There is a plan to switch to modular typeshed, see https://github.com/python/typeshed/issues/2491. One possible option is when this will be implemented, we can probably transfer stubs there, so they will be...

Btw, I am going to make a release later today. Please test the current master to check if there are any issues.

I finally released `sqlalchemy-stubs` v0.4 on PyPI. Please try it!

Great news! Yes, a plugin is required for mypy, but it should be easy to ship it with the distribution, it is just a moderate size module. Also it is...

There are some docs at https://mypy.readthedocs.io/en/stable/extending_mypy.html#extending-mypy-using-plugins, it is still not 100% stable, but backwards incompatible changes are now extremely rare.

@JukkaL could you please help with the legal stuff? About that Column thing: yes and no. IIRC that particular plugin hook you linked (i.e. `get_function_hook()`) only helps figuring out more...