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' 

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