Skip to content

WKBElement class has no __bool__ method #243

@alkment

Description

@alkment

It seems like currently WKBElment objects returned by queries don't have a bool method thus it's not easy to implement logic that conditions on the ORM model having a non null GIS field.

What do you think about adding the following ?

def __bool__(self):
    return True

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions