Skip to content

Styles import not backwards compatible with latest version (25.5.0) #769

@Seamus-Forge-Global

Description

@Seamus-Forge-Global

Was trying to install apache-airflow with the latest requirements and version 25.5.0 of structlog was installed but then the following error happen:

Error:
from structlog.dev import ConsoleRenderer, Styles
ImportError: cannot import name 'Styles' from 'structlog.dev'

More context:
In version 25.4.0 of structlog in dev.py line 129 I see: Styles = Union[_Styles, Type[_Styles]]
In version 25.5.0 this looks like it was removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions