Skip to content

1.9.4 release not backward compatible with Python 3.8 #414

@nemesifier

Description

@nemesifier

The latest release doesn't seem to work anymore with Python 3.8:

  File "/home/runner/work/openwisp-radius/openwisp-radius/openwisp_radius/saml/backends.py", line 2, in <module>
    from djangosaml2.backends import Saml2Backend
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/djangosaml2/backends.py", line 43, in <module>
    class Saml2Backend(ModelBackend):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/djangosaml2/backends.py", line 75, in Saml2Backend
    ) -> tuple[str, Optional[Any]]:
TypeError: 'type' object is not subscriptabl

Downdgrading to 1.9.3 fixes the issue.

Is this intentional?
I would have expected such breaking change to be included in a new minor version (eg: 1.10.0), not in a bugfix release.

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