summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst5
-rw-r--r--gitlab/__init__.py1
-rw-r--r--gitlab/base.py8
3 files changed, 10 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index 647091a..9e8c212 100644
--- a/README.rst
+++ b/README.rst
@@ -73,6 +73,11 @@ Bug reports
Please report bugs and feature requests at
https://github.com/python-gitlab/python-gitlab/issues.
+Gitter Community Chat
+=====================
+
+There is a `gitter <https://gitter.im/python-gitlab/Lobby>`_ community chat
+available at https://gitter.im/python-gitlab/Lobby
Documentation
=============
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 2802615..b264e5a 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -30,7 +30,6 @@ from gitlab.__version__ import (
from gitlab.client import Gitlab, GitlabList
from gitlab.const import * # noqa
from gitlab.exceptions import * # noqa
-from gitlab import utils # noqa
warnings.filterwarnings("default", category=DeprecationWarning, module="^gitlab")
diff --git a/gitlab/base.py b/gitlab/base.py
index 5372244..30f0659 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import importlib
-from typing import Any, Dict, Optional
+from typing import Any, Dict, Optional, Type
from .client import Gitlab, GitlabList
@@ -171,7 +171,9 @@ class RESTObjectList(object):
_list: A GitlabList object
"""
- def __init__(self, manager: "RESTManager", obj_cls, _list: GitlabList) -> None:
+ def __init__(
+ self, manager: "RESTManager", obj_cls: Type[RESTObject], _list: GitlabList
+ ) -> None:
"""Creates an objects list from a GitlabList.
You should not create objects of this type, but use managers list()
@@ -246,7 +248,7 @@ class RESTManager(object):
"""
_path: Optional[str] = None
- _obj_cls: Optional[Any] = None
+ _obj_cls: Optional[Type[RESTObject]] = None
_from_parent_attrs: Dict[str, Any] = {}
def __init__(self, gl: Gitlab, parent: Optional[RESTObject] = None) -> None: