Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(tags): import Self from typing for Python 3.11+ #1365

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

Conversation

@noirbizarre
Copy link
Member

@noirbizarre noirbizarre commented Mar 2, 2025

Description

typing-extensions is not installed for Python 3.11+, so fix the import properly.

Note

CI was not failing as typing-extensions is a transitive dependency of multiple test/lint dependencies but is missing as soon as commitizen is installed alone.

Checklist

  • Add test cases to all the changes you introduce
  • Run poetry all locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes

Expected behavior

commitizen import/run does not fail on Selfgit s

Additional context

I might merge this PR without review as soon as the CI pass as the latest release is broken for Python 3.11+

Copy link

codecov bot commented Mar 2, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.69%. Comparing base (120d514) to head (db97e60).
Report is 573 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@
## master #1365 +/- ##
==========================================
+ Coverage 97.33% 97.69% +0.35% 
==========================================
 Files 42 57 +15 
 Lines 2104 2648 +544 
==========================================
+ Hits 2048 2587 +539 
- Misses 56 61 +5 
Flag Coverage Δ
unittests 97.69% <100.00%> (+0.35%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member Author

Duplicate #1364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@woile woile Awaiting requested review from woile woile is a code owner

@Lee-W Lee-W Awaiting requested review from Lee-W Lee-W is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /