FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make gitlab.Gitlab.from_config a classmethod by jeroendecroos · Pull Request #738 · python-gitlab/python-gitlab · GitHub

Repository navigation

Make gitlab.Gitlab.from_config a classmethod - #738

Merged
gpocentek merged 1 commit into
python-gitlab:masterfrom
jeroendecroos:Gitlab_from_config_inheritance
Mar 7, 2019
Merged

gpocentek merged 1 commit into
python-gitlab:masterfrom
jeroendecroos:Gitlab_from_config_inheritance

Conversation

Copy link
Copy Markdown
Contributor

When calling from_config on a subclass of gitlab.Gitlab, a gitlab.Gitlab instance was returned, not the subclass.

I've changed the from_config method to a classmethod, so to return the proper class when called.

I've also added 2 tests to test "from_config".

gpocentek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good, thanks!

gpocentek merged commit 6bd1902 into python-gitlab:master Mar 7, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL