File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
1818import importlib
19- from typing import Any , Dict , Optional
19+ from typing import Any , Dict , Optional , Type
2020
2121from .client import Gitlab , GitlabList
2222
@@ -171,7 +171,9 @@ class RESTObjectList(object):
171171 _list: A GitlabList object
172172 """
173173
174- def __init__ (self , manager : "RESTManager" , obj_cls , _list : GitlabList ) -> None :
174+ def __init__ (
175+ self , manager : "RESTManager" , obj_cls : Type [RESTObject ], _list : GitlabList
176+ ) -> None :
175177 """Creates an objects list from a GitlabList.
176178
177179 You should not create objects of this type, but use managers list()
@@ -246,7 +248,7 @@ class RESTManager(object):
246248 """
247249
248250 _path : Optional [str ] = None
249- _obj_cls : Optional [Any ] = None
251+ _obj_cls : Optional [Type [ RESTObject ] ] = None
250252 _from_parent_attrs : Dict [str , Any ] = {}
251253
252254 def __init__ (self , gl : Gitlab , parent : Optional [RESTObject ] = None ) -> None :
You can’t perform that action at this time.
0 commit comments