We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c05a2 commit 9cb8ba6Copy full SHA for 9cb8ba6
mypy/test/teststubtest.py
@@ -2663,8 +2663,9 @@ class _X1: ...
2663
def test_type_default_protocol(self) -> Iterator[Case]:
2664
yield Case(
2665
stub="""
2666
- from typing import Protocol
+ from typing import Protocol, type_check_only
2667
2668
+ @type_check_only
2669
class _FormatterClass(Protocol):
2670
def __call__(self, *, prog: str) -> HelpFormatter: ...
2671
0 commit comments