Skip to content

Conversation

@CharString
Copy link
Contributor

Fixes #201

Changes

  • The warning was still raised... is doesn't work on splitting; you get a different list
  • handles the no default case for optional extras.
  • fix an unrelated assertions... asserting absence is often tricky 🙃

@CharString CharString linked an issue Jan 30, 2026 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.63%. Comparing base (e0b2bbb) to head (cd5c464).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   93.54%   93.63%   +0.08%     
==========================================
  Files          17       17              
  Lines         620      628       +8     
==========================================
+ Hits          580      588       +8     
  Misses         40       40              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

RuntimeWarning,
)
if default is undefined:
return default # don't call _config it will require variable.name!
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMHO, returning undefined is scuffed. But I don't want to spend more time on fixing the type annotation, since maykin-common has a decent one. And an open ticket to merge missing functionality in there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh.. That ticket was close, but there's still a draft PR: maykinmedia/django-common#34

@CharString CharString requested a review from stevenbal January 30, 2026 10:16
@stevenbal stevenbal merged commit eeaae7e into main Feb 2, 2026
7 checks passed
@stevenbal stevenbal deleted the 201-the-optional-dependencies-are-not-actually-optional branch February 2, 2026 09:51
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.

The "optional dependencies" are not actually optional.

3 participants