Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ B
Class
B
Lib/test/test_typing.py:6614–6617 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6612
class
A:
6613
y: float
6614
class
B(A):
6615
x: ClassVar[Optional[
'B'
]] = None
6616
y: int
6617
b: int
6618
class
CSub(B):
6619
z: ClassVar[
'CSub'
] = B()
6620
class
G(Generic[T]):
Callers
10
test_cannot_instantiate_abstract
Method · 0.70
test_none_on_non_callable_doesnt_block_implementation
Method · 0.70
test_none_on_callable_blocks_implementation
Method · 0.70
test_none_treated_correctly
Method · 0.70
test_io_reader_protocol_allowed
Method · 0.70
test_io_writer_protocol_allowed
Method · 0.70
test_dict
Method · 0.70
CSub
Class · 0.70
test_get_type_hints_for_object_with_annotations
Method · 0.70
test_annotated_cached_with_types
Method · 0.70
Calls
no outgoing calls
Tested by
9
test_cannot_instantiate_abstract
Method · 0.56
test_none_on_non_callable_doesnt_block_implementation
Method · 0.56
test_none_on_callable_blocks_implementation
Method · 0.56
test_none_treated_correctly
Method · 0.56
test_io_reader_protocol_allowed
Method · 0.56
test_io_writer_protocol_allowed
Method · 0.56
test_dict
Method · 0.56
test_get_type_hints_for_object_with_annotations
Method · 0.56
test_annotated_cached_with_types
Method · 0.56