PY-59791 Simplify extracting a wrapped type from sqlalchemy.orm.Mapped
Use PyTypingTypeProvider.getAnnotationValue for that, similarly to already re-used in other places PyTypingTypeProvider.getReturnTypeAnnotation. Also, I've better separated handling of attributes explicitly annotated with Mapped and just initialized with a mapped_column call. It will help to remove special casing for Mapped once generic descriptors are fully supported in type inference (PY-26184). (cherry picked from commit eaeb66abd26b851507970b112360631704b41db3) GitOrigin-RevId: 442369f52ed5c6b97d91648f7968ff3a7ba285cb
Showing
+5 -4
Please register or sign in to comment