python-gitlab
python-gitlab copied to clipboard
Some mixins are not properly type-hinted
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
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.
Is this a duplicate of #2062?