Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ jobs:
toxenv: py312,smoke
- version: "3.13"
toxenv: py313,smoke
# NOTE(jlvillal): 2024-10-17: Enable this once we fix
# https://github.com/python-gitlab/python-gitlab/issues/3013
# - version: "3.14.0-alpha - 3.14" # SemVer's version range syntax
# toxenv: py314,smoke
- version: "3.14.0-alpha - 3.14" # SemVer's version range syntax
toxenv: py314,smoke
include:
- os: macos-latest
python:
Expand Down
4 changes: 2 additions & 2 deletions gitlab/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ def _create_managers(self) -> None:
# NOTE(jlvillal): We are creating our managers by looking at the class
# annotations. If an attribute is annotated as being a *Manager type
# then we create the manager and assign it to the attribute.
for attr, annotation in sorted(self.__annotations__.items()):
for attr, annotation in sorted(self.__class__.__annotations__.items()):
# We ignore creating a manager for the 'manager' attribute as that
# is done in the self.__init__() method
if attr in ("manager",):
continue
if not isinstance(annotation, (type, str)):
if not isinstance(annotation, (type, str)): # pragma: no cover
continue
if isinstance(annotation, type):
cls_name = annotation.__name__
Expand Down