Skip to content

Change of behavior in str(pystac.RelType.root) #626

@TomAugspurger

Description

@TomAugspurger

In pystac 1.0, calling str on the value of an enum like RelType.ROOT would return the value:

In [1]: import pystac

In [2]: str(pystac.RelType.ROOT)  # pystac 1.0.0
Out[2]: 'root'

On the latest release (1.1.0) that includes the class name.

In [4]: str(pystac.RelType.ROOT)
Out[4]: 'RelType.ROOT'

I suspect this was changed in #514.

I was relying on the old behavior in https://github.com/TomAugspurger/xstac, which seems useful to me. Do we want to restore the 1.0 behavior? Or stick with the 1.1 behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions