Skip to content

3.0.0 is not compatible with Python<=3.10 #1036

Description

@fxstempfelals

typing.Self was introduced in Python 3.11

It is used here: https://github.com/vgrem/office365-rest-python-client/blob/v3.0.0/office365/onedrive/base_item.py#L4

from typing import TYPE_CHECKING, Any, Optional, Self

This breaks compatibility with versions of Python prior 3.11. Trying to import it with Python 3.10 raises this error:

ImportError: cannot import name 'Self' from 'typing' 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions