We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bc158d + ad72ef3 commit 7441455Copy full SHA for 7441455
gitlab/base.py
@@ -16,6 +16,7 @@
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
import importlib
19
+from types import ModuleType
20
from typing import Any, Dict, Optional, Type
21
22
from .client import Gitlab, GitlabList
@@ -38,7 +39,12 @@ class RESTObject(object):
38
39
without ID in the url.
40
"""
41
- _id_attr = "id"
42
+ _id_attr: Optional[str] = "id"
43
+ _attrs: Dict[str, Any]
44
+ _module: ModuleType
45
+ _parent_attrs: Dict[str, Any]
46
+ _updated_attrs: Dict[str, Any]
47
+ manager: "RESTManager"
48
49
def __init__(self, manager: "RESTManager", attrs: Dict[str, Any]) -> None:
50
self.__dict__.update(
0 commit comments