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

chore: use built-in function issubclass() instead of getmro() by JohnVillalovos · Pull Request #1481 · python-gitlab/python-gitlab · GitHub

Repository navigation

chore: use built-in function issubclass() instead of getmro() - #1481

Merged
nejch merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/no_getmro
May 29, 2021
Merged

nejch merged 1 commit into
python-gitlab:masterfrom
JohnVillalovos:jlvillal/no_getmro

Conversation

JohnVillalovos commented May 28, 2021 •
edited
Loading

Copy link
Copy Markdown
Member

Code was using inspect.getmro() to replicate the functionality of the
built-in function issubclass()

Switch to using issubclass()

JohnVillalovos marked this pull request as draft May 28, 2021 21:17

codecov-commenter commented May 28, 2021 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #1481 (81f6386) into master (90ecf2f) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1481      +/-   ##
==========================================
- Coverage   90.91%   90.91%   -0.01%     
==========================================
  Files          73       73              
  Lines        4051     4049       -2     
==========================================
- Hits         3683     3681       -2     
  Misses        368      368              
Flag Coverage Δ
cli_func_v4 80.46% <100.00%> (-0.01%) ⬇️
py_func_v4 79.82% <0.00%> (+0.03%) ⬆️
unit 81.99% <70.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gitlab/v4/cli.py 81.17% <100.00%> (-0.15%) ⬇️

Code was using inspect.getmro() to replicate the functionality of the
built-in function issubclass()

Switch to using issubclass()
JohnVillalovos changed the title WIP: Trying issubclass() instead of using inspect.getmro() chore: use built-in function issubclass() instead of getmro() May 28, 2021
JohnVillalovos marked this pull request as ready for review May 28, 2021 22:35
JohnVillalovos requested a review from nejch May 28, 2021 22:35

nejch left a comment

Copy link
Copy Markdown
Member

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

Thanks. Looking at this reminds me there's a lot of V3 cruft left in the code (like this try/except). Just one little question :)

Comment thread gitlab/v4/cli.py
nejch merged commit 489b0d3 into python-gitlab:master May 29, 2021
JohnVillalovos deleted the jlvillal/no_getmro branch May 30, 2021 03:59
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.

3 participants


Back | FazBrowse Home | New Git URL