| Server IP : 118.27.122.248 / Your IP : 216.73.217.37 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3
�w2_� � @ s� d Z ddlZddlmZ ddlmZmZmZ ejdd� dkrLe ed�� nLe
ed ed
d�ZdZdZ
ed�ZG d
d � d ee �ZG dd
� d
ee �ZdS )zEModule for testing the behavior of generics across different modules.� N)�dedent)�TypeVar�Generic�Optional� � � af
default_a: Optional['A'] = None
default_b: Optional['B'] = None
T = TypeVar('T')
class A(Generic[T]):
some_b: 'B'
class B(Generic[T]):
class A(Generic[T]):
pass
my_inner_a1: 'B.A'
my_inner_a2: A
my_outer_a: 'A' # unless somebody calls get_type_hints with localns=B.__dict__
�A�B)� default_a� default_b�Tc @ s e Zd Zedd�ZdS )r r
)Zsome_bN)�__name__�
__module__�__qualname__�dict�__annotations__� r r �</opt/alt/python36/lib64/python3.6/test/mod_generics_cache.pyr '