Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Nov 9, 2021
1 parent bd6db79 commit ee89d92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xarray/tests/test_plugins.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
from unittest import mock

import pytest
from importlib_metadata import EntryPoint

from xarray.backends import common, plugins

try:
import importlib.metadata as importlib_metadata

from importlib_metadata import EntryPoint

except ImportError:
# if the fallback library is missing, we are doomed.
import importlib_metadata as importlib_metadata
import importlib_metadata as importlib_metadata # type: ignore[no-redef]
from importlib_metadata import EntryPoint # type: ignore[no-redef]


class DummyBackendEntrypointArgs(common.BackendEntrypoint):
Expand Down

0 comments on commit ee89d92

Please sign in to comment.