FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Python 3.14 breaks unit tests · Issue #3013 · python-gitlab/python-gitlab · GitHub

Repository navigation

Python 3.14 breaks unit tests #3013

Description

See https://docs.python.org/3.14/whatsnew/3.14.html on how to resolve this.

Due to how Python 3.14 is doing annotations and in particular being able to inspect __annotations__ we will need to make changes to fix it.

The one line which seems to be causing the failures is:

for attr, annotation in sorted(self.__annotations__.items()):

Example error:

AttributeError: 'FakeParent' object has no attribute '__annotations__'. Did you mean: '__annotate__'?

Activity

  1. JohnVillalovos commented on Oct 11, 2024

    MemberAuthor

    @nejch I discovered this when trying to do this PR: #3012

  2. nejch commented on Oct 18, 2024

    Member

    From the looks of it, I hope they provide an annotationlib backport for older pythons as we kind of rely on this for the managers. Would be a shame to go back to adding more bloat unless there's another way 🙇

  3. added 3 commits that reference this issue on Oct 23, 2024
    f7749dc
    919d0ae
    642ea08
  4. added a commit that references this issue on Oct 24, 2024
    14d2a82
  5. locked as resolved and limited conversation to collaborators on Oct 27, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL