sqlalchemy-stubs icon indicating copy to clipboard operation
sqlalchemy-stubs copied to clipboard

Add "common issues" doc to cover known workarounds

Open sirosen opened this issue 3 years ago • 1 comments

I'm happy to write a first draft of this if the maintainers would like it. But I don't want to put in the effort if it's not wanted.

I've run into two issues which really puzzled me in terms of what to do until I poked around in issues here. I'm sure there are others.

hybrid_property can't use the special magic of property in mypy, but #98 has a workaround seems to work. And #94 covers ways of getting UUID(as_uuid=True) to work.

It would be helpful (since these are not going to be fixed soon) if this library made these workarounds part of its docs. It could be done at the end of the readme or in a separate markdown doc linked in the repo.

sirosen avatar Dec 11 '20 15:12 sirosen

#114 also has a workaround for Enum.

absassi avatar Apr 22 '21 13:04 absassi