Skip to content

Bug: Cannot use sqlalchemy hybrid_methods with Litestar #578

@audiovention

Description

@audiovention

Description

The litestar DTO integration tries to parse hybrid_method properties and fails with NotImplementedError:

raise NotImplementedError(msg)

This essentially prevents me from using hybrid_methods in my litestar app.
IMO this logic should handle hybrid_properties but completely ignore hybrid_methods as they have no business being included in the DTO

URL to code causing the issue

No response

MCVE

Steps to reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

Package Version

1.7.0

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions