Skip to content

Commit 1ed4cb6

Browse files
ilevkivskyigvanrossum
authored andcommitted
Update typing.py from python/typing (#2870)
1 parent 95fd5fb commit 1ed4cb6

File tree

6 files changed

+962
-159
lines changed

6 files changed

+962
-159
lines changed

lib-typing/2.7/mod_generics_cache.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""Module for testing the behavior of generics across different modules."""
2+
3+
from typing import TypeVar, Generic
4+
5+
T = TypeVar('T')
6+
7+
8+
class A(Generic[T]):
9+
pass
10+
11+
12+
class B(Generic[T]):
13+
class A(Generic[T]):
14+
pass

0 commit comments

Comments
 (0)