Skip to content

Handle missing package version in module_available - #11480

Open
stevenpunn wants to merge 2 commits into
pydata:mainfrom
stevenpunn:fix-11344-module-version-none
Open

Handle missing package version in module_available#11480
stevenpunn wants to merge 2 commits into
pydata:mainfrom
stevenpunn:fix-11344-module-version-none

Conversation

@stevenpunn

Copy link
Copy Markdown

Description

Checklist

This updates module_available to return False when package metadata returns None for the installed version, rather than passing None to packaging.version.Version and raising TypeError.

A regression test was added to reproduce the missing-version case.

Tests:

  • python -m pytest xarray\tests\test_utils.py -v
  • 67 passed, 1 skipped

@welcome

welcome Bot commented Jul 28, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

@github-actions github-actions Bot added the topic-NamedArray Lightweight version of Variable label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-NamedArray Lightweight version of Variable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load failure (in rain to flood toolkit)

1 participant