Skip to content

chore: update to mypy 1.16.0 and resolve issues found #3215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged

Conversation

JohnVillalovos
Copy link
Member

There was an error in the type-hints that was detected when updating to mypy 1.16.0

The error was:
$ mypy
gitlab/v4/cli.py:411: error: Argument 1 to "cls_to_gitlab_resource" has incompatible type "type[Any]"; expected "RESTObject" [arg-type]
Found 1 error in 1 file (checked 246 source files)

@JohnVillalovos JohnVillalovos requested a review from nejch June 9, 2025 19:40
There was an error in the type-hints that was detected when updating
to mypy 1.16.0

The error was:
  $ mypy
  gitlab/v4/cli.py:411: error: Argument 1 to "cls_to_gitlab_resource" has incompatible type "type[Any]"; expected "RESTObject"  [arg-type]
  Found 1 error in 1 file (checked 246 source files)
Copy link

codecov bot commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.32%. Comparing base (378a836) to head (2d03b01).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3215   +/-   ##
=======================================
  Coverage   97.32%   97.32%           
=======================================
  Files          98       98           
  Lines        6057     6057           
=======================================
  Hits         5895     5895           
  Misses        162      162           
Flag Coverage Δ
api_func_v4 83.68% <50.00%> (-0.05%) ⬇️
cli_func_v4 84.69% <100.00%> (ø)
unit 90.19% <100.00%> (ø)

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

Files with missing lines Coverage Δ
gitlab/cli.py 100.00% <100.00%> (ø)
gitlab/v4/cli.py 91.85% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks @JohnVillalovos for looking into this, I'm still catching up!

@nejch nejch merged commit f734c58 into main Jun 10, 2025
19 checks passed
@nejch nejch deleted the jlvillal/mypy branch June 10, 2025 11:39
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