mirror of https://github.com/python/cpython
15 lines
224 B
Python
15 lines
224 B
Python
|
"""Module for testing the behavior of generics across different modules."""
|
||
|
|
||
|
from typing import TypeVar, Generic
|
||
|
|
||
|
T = TypeVar('T')
|
||
|
|
||
|
|
||
|
class A(Generic[T]):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class B(Generic[T]):
|
||
|
class A(Generic[T]):
|
||
|
pass
|