Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/test/test_typing.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
JelleZijlstra and AlexWaygood authored May 25, 2023
commit 19bbcb05fbee4049058e149ba7913407b14b89c7
2 changes: 2 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2500,10 +2500,12 @@ def test_pep695_generics_can_be_runtime_checkable(self):
@runtime_checkable
class HasX(Protocol):
x: int

class Bar[T]:
x: T
def __init__(self, x):
self.x = x

class Capybara[T]:
Comment thread
JelleZijlstra marked this conversation as resolved.
y: str
def __init__(self, y):
Expand Down