This commit is contained in:
Alex Waygood 2025-04-26 15:16:26 +01:00
parent d4b8eaaa39
commit 9c79117af5
1 changed files with 2 additions and 2 deletions

View File

@ -294,8 +294,8 @@ runtime -- these reveal `bool` rather than `Literal[True]` or `Literal[False]`,
incorrect:
```py
typing_extensions.reveal_type(typing.Protocol is typing_extensions.Protocol) # revealed: bool
typing_extensions.reveal_type(typing.Protocol is not typing_extensions.Protocol) # revealed: bool
reveal_type(typing.Protocol is typing_extensions.Protocol) # revealed: bool
reveal_type(typing.Protocol is not typing_extensions.Protocol) # revealed: bool
```
## Calls to protocol classes