python-gitlab icon indicating copy to clipboard operation
python-gitlab copied to clipboard

Some mixins are not properly type-hinted

Open mykolasolodukha opened this issue 3 years ago • 2 comments

E.g. for the CreateMixin the .create(...) method returns things like ProjectMergeRequest but not the base.RESTObject as specified here.


python-gitlab version: 3.5.0

mykolasolodukha avatar Aug 08 '22 15:08 mykolasolodukha

Yes, that is a current limitation of our type-hints. For the get methods we have forced each manager to define a get method which has the correct type-hint. But we would like to have a better way to handle it for all methods without needing to define each one in every manager.

JohnVillalovos avatar Sep 13 '22 17:09 JohnVillalovos

Is this a duplicate of #2062?

vectro avatar Jan 18 '23 18:01 vectro