Skip to content

Commit 6a276ff

Browse files
committed
Remove docstring as comment. It's over-specific (pytest-mypy) but also any user of mypy is probably familiar that mypy doesn't handle conditional imports elegantly.
1 parent d03b0c3 commit 6a276ff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

importlib_metadata/_compat.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
try:
99
from typing import Protocol
1010
except ImportError: # pragma: no cover
11-
"""
12-
pytest-mypy complains here because:
13-
error: Incompatible import of "Protocol" (imported name has type
14-
"typing_extensions._SpecialForm", local name has type "typing._SpecialForm")
15-
"""
1611
from typing_extensions import Protocol # type: ignore
1712

1813

0 commit comments

Comments
 (0)