python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_dataclasses.cpython-312.pyc

͑e:LddlddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
mZmZmZmZmZmZmZmZmZmZddlmZddlmZmZmZmZddlmZddlZddlZGdd	e Z!Gd
de	jDZ"Gdd
e	jDZ#Gdde	jDZ$Gdde	jDZ%Gdde	jDZ&Gdde	jDZ'Gdde	jDZ(Gdde	jDZ)Gdde	jDZ*Gdde	jDZ+Gdde	jDZ,Gd d!e	jDZ-e.d"d#e/fgZ0e.d$d#e/fge1%Z2e.d&d#e/fgZ3e.d'd#e/fgd(%Z4Gd)d*e	jDZ5Gd+d,e	jDZ6Gd-d.e	jDZ7Gd/d0e	jDZ8Gd1d2e	jDZ9e1d3k(re	jtyy)4)*N)Mock)ClassVarAnyListUnionTupleDictGenericTypeVarOptionalProtocolDefaultDict)get_type_hints)dequeOrderedDict
namedtupledefaultdict)total_orderingceZdZy)CustomErrorN__name__
__module____qualname__I/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_dataclasses.pyrrrrceZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTdSZUdTZVdUZWdVZXdWZYdXZZdYZ[dZZ\d[Z]d\Z^d]Z_d^Z`d_Zad`ZbdaZcdbZddcZeddZfdeZgdfZhdgZidhZjdiZkdjZlyk)lTestCasectGdd}|}|jtt|dy)NceZdZy)"TestCase.test_no_fields.<locals>.CNrrrrCr$rr%r	dataclassassertEquallenfieldsselfr%os   rtest_no_fieldszTestCase.test_no_fieldss:			
	
CVAY+rctGdd}|}|jtt|dy)NceZdZdZy)6TestCase.test_no_fields_but_member_variable.<locals>.CrN)rrrirrrr%r2&sArr%rr'r,s   r"test_no_fields_but_member_variablez+TestCase.test_no_fields_but_member_variable%s:			
	
CVAY+rcrtGdd}|d}|j|jdy)NceZdZUeed<y)-TestCase.test_one_field_no_default.<locals>.CxNrrrint__annotations__rrrr%r7.Frr%*r(r)r8r,s   rtest_one_field_no_defaultz"TestCase.test_one_field_no_default-s8			
	
bEb!rcd}|jt|5tGdd}dddy#1swYyxYw)Nz/cannot specify both default and default_factoryc,eZdZUedeZeed<y)<TestCase.test_field_default_default_factory_error.<locals>.Cdefaultdefault_factoryr8N)rrrfieldr:r8r;rrrr%rB8sq#>3>rr%)assertRaisesRegex
ValueErrorr()r-msgr%s   r(test_field_default_default_factory_errorz1TestCase.test_field_default_default_factory_error5sC?

#
#J
4	?

?
?
?	?	?	?s6?ctddd}d|_t|}dtdtd}|j	||y)	NrCTF)rEinitrepridz4Field(name='id',type=None,default=1,default_factory=zO,init=True,repr=False,hash=None,compare=True,metadata=mappingproxy({}),kw_only=z,_field_type=None))rGnamerNMISSINGr))r-	int_fieldrepr_outputexpected_outputs    rtest_field_reprzTestCase.test_field_repr<sU!$U;		9o88?{C&'.[1/	/	
o6rcnt}||_d|_t|}|j	d|y)NrO
,type=...,)rGtyperPrNassertIn)r-	rec_fieldrSs   rtest_field_recursive_reprz"TestCase.test_field_recursive_reprIs.G	"		9o

lK0rcGdd}tGdd}|jdt|jdy)NceZdZy)-TestCase.test_recursive_annotation.<locals>.CNrrrrr%r^Rrr%c&eZdZUeZeed<y)-TestCase.test_recursive_annotation.<locals>.Dr%N)rrrrGr%r;rrrDraUs
7AqNrrbrW)r(rYrN__dataclass_fields__r-r%rbs   rtest_recursive_annotationz"TestCase.test_recursive_annotationQsE		
		
		


lD)?)?)D$EFrctddGdd}t|j}d}|j||y)NT)slotsfrozenceZdZy)1TestCase.test_dataclass_params_repr.<locals>.SomeNrrrrSomerj_rrkz_DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=True,match_args=True,kw_only=False,slots=True,weakref_slot=False))r(rN__dataclass_params__r))r-rkrSrTs    rtest_dataclass_params_reprz#TestCase.test_dataclass_params_repr[sE
d	+
,4445;	
o6rctGdd}tjtjD]/}|dk(r	|j	t|j||1y)NceZdZy)6TestCase.test_dataclass_params_signature.<locals>.SomeNrrrrrkrqmrlrrkcls)rJ)r(inspect	signature
parameters
assertTruehasattrrm)r-rkparams   rtest_dataclass_params_signaturez(TestCase.test_dataclass_params_signatureis^

&&y1<<	RE~OOGD$=$=uE5OQ	RrcttGdd}|d}|j|jdy)NceZdZUeed<y)*TestCase.test_named_init_params.<locals>.Cr8Nr9rrrr%r|vr<rr% r8r>r,s   rtest_named_init_paramszTestCase.test_named_init_paramsus8			
	
Gb!rcNtGdd}|d}|j|j|jfd|j	t
d5tGdd}ddd|j	t
d5tGdd}tGd	d|}ddd|j	t
d5tGd
d}tGdd|}dddy#1swYxYw#1swY\xYw#1swYyxYw)Nc&eZdZUeed<dZeed<y)/TestCase.test_two_fields_one_default.<locals>.Cr8ryNrrrr:r;rrrrr%r~FAsJrr%)rrz1non-default argument 'y' follows default argumentc&eZdZUdZeed<eed<y)rrr8rNrrrr8r:r;rrrr%z/TestCase.test_two_fields_one_default.<locals>.Cs3
rceZdZUdZeed<y)/TestCase.test_two_fields_one_default.<locals>.Brr8NrrrrBr3
rrceZdZUeed<y)rrNr9rrrr%z/TestCase.test_two_fields_one_default.<locals>.Crc"eZdZUeed<eed<y)rr8rNr9rrrrz/TestCase.test_two_fields_one_default.<locals>.BsrceZdZUdZeed<y)rrr8Nrrrrr%z/TestCase.test_two_fields_one_default.<locals>.Crr)r(r)r8rrH	TypeError)r-r%r.rs    rtest_two_fields_one_defaultz$TestCase.test_two_fields_one_default}sJ			
	
aD!##qssV,
#
#I%78	


		
#
#I%78		



A

		
#
#I%78
	



A


	
	-						
	
	s$D(D(DDDD$ctdGdd}|jt|ddtdGdd}|jt|dtd|jtd	5td
Gdd}dddtd
Gdd}|jt|d
td|jtd	5td
Gdd}dddy#1swYxYw#1swYyxYw)NTrhceZdZUeed<dZy)'TestCase.test_overwrite_hash.<locals>.Cr8cyN-rr-s r__hash__z0TestCase.test_overwrite_hash.<locals>.C.__hash__rN)rrrr:r;rrrrr%rF
rr%drceZdZUeed<dZy)rr8cyNFrr-others  r__eq__z.TestCase.test_overwrite_hash.<locals>.C.__eq__rNrrrr:r;rrrrr%z'TestCase.test_overwrite_hash.<locals>.CF
r)r#Cannot overwrite attribute __hash__unsafe_hashceZdZdZy)rcyNrrs rrz0TestCase.test_overwrite_hash.<locals>.C.__hash__rNrrrrrrrr%z'TestCase.test_overwrite_hash.<locals>.CsrceZdZUeed<dZy)rr8cyrrrs rrz.TestCase.test_overwrite_hash.<locals>.C.__eq__rNrrrrr%z'TestCase.test_overwrite_hash.<locals>.CsF
r
)rc$eZdZUeed<dZdZy)rr8cyrrrs rrz.TestCase.test_overwrite_hash.<locals>.C.__eq__rrcyrrrs rrz0TestCase.test_overwrite_hash.<locals>.C.__hash__rrN)rrrr:r;rrrrrr%z'TestCase.test_overwrite_hash.<locals>.Csr)r(r)hashrHrr-r%s  rtest_overwrite_hashzTestCase.test_overwrite_hashsE
$			
 		
afs+
$			
 		
aftF|4
#
#I$IK	
4
(

)
	
t	$		
%	
	
aed5k2

#
#I$IK	
4
(

)
		-		,		sD2D>2D;>Ec"tGdd}tGdd|}|}|jt|d|}|jt|d|d}|jt|d	y)
Nc*eZdZUdZeed<dZeed<y)=TestCase.test_overwrite_fields_in_derived_class.<locals>.Baseg.@r8rrN)rrrr8rr;rr:rrrBasersAsMAsJrrc*eZdZUdZeed<dZeed<y);TestCase.test_overwrite_fields_in_derived_class.<locals>.C1rzr8N)rrrrr:r;r8rrrC1rsAsKAsKrrzJTestCase.test_overwrite_fields_in_derived_class.<locals>.Base(x=15.0, y=0)zLTestCase.test_overwrite_fields_in_derived_class.<locals>.C1(x=15, y=0, z=10)r~zKTestCase.test_overwrite_fields_in_derived_class.<locals>.C1(x=5, y=0, z=10)r(r)rN)r-rrr.s    r&test_overwrite_fields_in_derived_classz/TestCase.test_overwrite_fields_in_derived_classs
		
	
		
	
Fa"noDa"pqGa"oprctGdd}|d}|j|jdtj|j
}t
t|j}|jd|tGdd}tj|j
}t
t|j}|jd|y)NceZdZUeed<y))TestCase.test_field_named_self.<locals>.Cr-Nrrrstrr;rrrr%rsIrr%foor-ceZdZUeed<y)rselfxNrrrrr%z)TestCase.test_field_named_self.<locals>.CJr)
r(r)r-rsrt__init__nextiterruassertNotEqual)r-r%csigfirsts     rtest_field_named_selfzTestCase.test_field_named_selfs			
	
E('

+T#..)*FE*
		
	

+T#..)*'rcrtGdd}|d}|j|jdy)NceZdZUeed<y)+TestCase.test_field_named_object.<locals>.CobjectNrrrrr%rKrr%rr(r)rr-r%rs   rtest_field_named_objectz TestCase.test_field_named_object
s6			
	
eH5)rc~tdGdd}|d}|j|jdy)NTrceZdZUeed<y)2TestCase.test_field_named_object_frozen.<locals>.CrNrrrrr%rrrr%rrrs   rtest_field_named_object_frozenz'TestCase.test_field_named_object_frozens;	$			
 	
eH5)rc~tdGdd}|d}|j|jdy)NTrceZdZUeed<y)4TestCase.test_field_named_BUILTINS_frozen.<locals>.CBUILTINSNr9rrrr%rsMrr%r)r(r)rrs   r test_field_named_BUILTINS_frozenz)TestCase.test_field_named_BUILTINS_frozens;	$			
 	
aDQ'rctGdd}|tGdd}|djdk(sJy)NcJeZdZUedZeed<edZeed<y)CTestCase.test_field_with_special_single_underscore_names.<locals>.XcyNorrrr<lambda>zLTestCase.test_field_with_special_single_underscore_names.<locals>.X.<lambda>%rrFr8cy)NrrrrrzLTestCase.test_field_with_special_single_underscore_names.<locals>.X.<lambda>&rr_dflt_xN)rrrrGr8r:r;rrrrXr#s ;7As7 =GS=rrc:eZdZUedZeed<dZeed<y)CTestCase.test_field_with_special_single_underscore_names.<locals>.YcyrrrrrrzLTestCase.test_field_with_special_single_underscore_names.<locals>.Y.<lambda>,rrrrr_HAS_DEFAULT_FACTORYN)rrrrGrr:r;rrrrYr*s;7As7(+ #+rrrr)r(r)r-rrs   r/test_field_with_special_single_underscore_namesz8TestCase.test_field_with_special_single_underscore_names sQ
	>	>
	>	
		,	,
	,3xzzS   rc0hdtfdtjjD}|Dcgc]
}|tf}}td|}||Dcgc]}|c}}|D]}|j
t||| ycc}wcc}w)N>NoneTrueFalsec3LK|]}|jds|vr|yw__N
startswith.0b
exclusionss  r	<genexpr>z9TestCase.test_field_named_like_builtin.<locals>.<genexpr>6, 
<<%!:*=
 
!$r%sortedbuiltins__dict__keysrmake_dataclassr)getattrr-builtins_namesrP
attributesr%rrs      @rtest_field_named_like_builtinz&TestCase.test_field_named_like_builtin1s/
 
((--/ 

/==dtSk=
=3
+
001"	5DWQ-t4	5>1sB	Bc4hdtfdtjjD}|Dcgc]
}|tf}}td|d}||Dcgc]}|c}}|D]}|j
t||| ycc}wcc}w)N>rrrc3LK|]}|jds|vr|ywrrrs  rr	z@TestCase.test_field_named_like_builtin_frozen.<locals>.<genexpr>Hr
rr%Trrrs      @r$test_field_named_like_builtin_frozenz-TestCase.test_field_named_like_builtin_frozenBs
/
 
((--/ 

/==dtSk=
=3
48
001"	5DWQ-t4	5>1sB	BctGdd}tdGdd}||fD]}|j|5|j||tdd	d
dgD]m\}}|j|5|j	t
d
|jd|jd5|||ddddddo	dddtdGdd}|j|||j||y#1swYpxYw#1swYxYw#1swY4xYw)NceZdZy))TestCase.test_0_field_compare.<locals>.C0NrrrrC0rVr&rrForderceZdZy))TestCase.test_0_field_compare.<locals>.C1Nrrrrrr!Zr&rrrrc||kSrrars  rrz/TestCase.test_0_field_compare.<locals>.<lambda>a
q1urc||kSrrr$s  rrz/TestCase.test_0_field_compare.<locals>.<lambda>b
qAvrc||kDSrrr$s  rrz/TestCase.test_0_field_compare.<locals>.<lambda>cr&rc||k\Srrr$s  rrz/TestCase.test_0_field_compare.<locals>.<lambda>dr(ridx$not supported between instances of '' and ''TceZdZy)(TestCase.test_0_field_compare.<locals>.CNrrrrr%r1jr&rr%)	r(subTestr)	enumeraterHrrassertLessEqualassertGreaterEqualr-rrrrr,fnr%s       rtest_0_field_comparezTestCase.test_0_field_compareTsz			
	
			
 	8
	-C#&	
-  .(*<*=*<*=*? @-GC#.-!33I6Z[^[g[gZhhopsp|p|o}}~4A-suce,---	-	
-	
-
	-
			
	QS!#&QS)----
	
-	
-s=AE2E	EE	
EEE	E
EE%	ctGdd}tdGdd}||fD]}|j|5|j|d|d|j|d	|dt	d
ddd
gD]o\}}|j|5|jtd|jd|jd5||d	|d	ddddddq	dddtdGdd}|j|d	|d|j|d	|d|j|d|d|j|d|d	|j|d|d	|j|d|dy#1swYxYw#1swYaxYw#1swYxYw)NceZdZUeed<y))TestCase.test_1_field_compare.<locals>.C0r8Nr9rrrrr;rr<rrFrceZdZUeed<y))TestCase.test_1_field_compare.<locals>.C1r8Nr9rrrrr=vr<rrr"rCrc||kSrrr$s  rrz/TestCase.test_1_field_compare.<locals>.<lambda>~r&rc||kSrrr$s  rrz/TestCase.test_1_field_compare.<locals>.<lambda>r(rc||kDSrrr$s  rrz/TestCase.test_1_field_compare.<locals>.<lambda>r&rc||k\Srrr$s  rrz/TestCase.test_1_field_compare.<locals>.<lambda>r(rr+r-r.r/TceZdZUeed<y)(TestCase.test_1_field_compare.<locals>.Cr8Nr9rrrr%rCr<rr%)r(r2r)rr3rHrr
assertLessr4
assertGreaterr5r6s       rtest_1_field_comparezTestCase.test_1_field_compareps			
	
			
 	8	/C#&

/  QQ0##CFCF3(*<*=*<*=*? @/GC#./!33I6Z[^[g[gZhhopsp|p|o}}~4A/s1vs1v.///	/

/

/	/
			
	!ad#QqT1Q4(QqT1Q4(1Q41&!ad+!ad+////

/

/s=A(G:.2G-	 G!6G-	>
G:!G*&G-	-G7
2G::H	ctGdd}tdGdd}||fD]&}|j|5|j|dd|dd|j|d	d
|d	d
|j|d	d|dd|j|d	d|d	d	t	ddd
dgD]q\}}|j|5|jtd|jd|jd5||dd|dddddddds	ddd)tdGdd}t	dddgD]F\}}|j|5|j||dd|dddddHt	dddgD]\}}|j|5|j||dd|dd	|j||dd	|d	d|j||d	d|d	d	dddt	dddgD]\}}|j|5|j||dd	|dd|j||d	d|dd	|j||d	d	|d	ddddy#1swYxYw#1swYWxYw#1swYxYw#1swYxYw#1swYzxYw#1swYxYw)Nc"eZdZUeed<eed<y)(TestCase.test_simple_compare.<locals>.C0r8rNr9rrrrrIFFrrFrc"eZdZUeed<eed<y)(TestCase.test_simple_compare.<locals>.C1r8rNr9rrrrrLrJrrr"rrCc||kSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>r&rc||kSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>r(rc||kDSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>r&rc||k\Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>r(rr+r-r.r/Tc"eZdZUeed<eed<y)'TestCase.test_simple_compare.<locals>.Cr8rNr9rrrr%rSrJrr%c||k(Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>
qAvrc||kSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUrc||k\Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUrc||kSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>
q1urc||kSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUrc||k7Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUrc||kDSrrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rYrc||k\Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUrc||k7Srrr$s  rrz.TestCase.test_simple_compare.<locals>.<lambda>rUr)	r(r2r)rr3rHrrrvr6s       rtest_simple_comparezTestCase.test_simple_compares			
	
			
 	8
	5C#&
5  QC1I6  QC1I6##C1Is1ay9##C1Is1ay9(*<*=*<*=*? @5GC#.5!33I6Z[^[g[gZhhopsp|p|o}}~4A5s1ay#a)4555	5
5
5
	5
			
	!"5"5"5"78	6GC#&
61Q7AaG 45
6
6	6!"4"5"5"78	6GC#&
61Q7AaG 451Q7AaG 451Q7AaG 45
6
6	6!"4"5"5"78	6GC#&
61Q7AaG 451Q7AaG 451Q7AaG 45
6
6	6/5555
5
5,
6
6
6
6
6
6scB,L532L(	%L=L(	
L5'M7A3MA3ML% L(	(L2
-L55L?	M	M	M%	c
*tGdd}tGdd|}tddfddfgD]H\}\}}|j|	5|j||d
|d
|dddJtddd
dgD]T\}}|j|	5|j	t
d5||d
|d
ddddddVy#1swYxYw#1swY xYw#1swYyxYw)NceZdZUeed<y)+TestCase.test_compare_subclasses.<locals>.Br3Nr9rrrrrbr<rrceZdZy)+TestCase.test_compare_subclasses.<locals>.CNrrrrr%rdr&rr%c||k(Srrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>
AFrFc||k7Srrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>rfrTr+rc||kSrrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>rYrc||kSrrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>rUrc||kDSrrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>rYrc||k\Srrr$s  rrz2TestCase.test_compare_subclasses.<locals>.<lambda>rUrz.not supported between instances of 'B' and 'C')r(r3r2r)rHr)r-rr%r,r7expecteds      rtest_compare_subclassesz TestCase.test_compare_subclassessA
		
	
		
	$-/BE.J/BD.I.K$L	;C"h#&
;  AaD!A$:
;
;	;
!"4"5"4"5"78	#GC#&
#++I,\^#qtQqTN#
#
#		#
;
;##
#
#s0&C11D	C=D	1C:	=DD		D	cdD]>\}}}|j||5|dk(r;|jtd5t||Gdd}dddnt||Gdd}|dk(r|j	d	|j
|j	d
|j
|j	d|j
|j	d|j
|j	d
|j
n.|dk(r|j
d	|j
|j
d
|j
|j
d|j
|j
d|j
|j
d
|j
n|dk(r|j
d	|j
|j	d
|j
|j	d|j
|j	d|j
|j	d
|j
n
Jd|dddAy#1swYxYw#1swYYxYw)N))FFneither)FT	exception)TFeq_only)TTboth)eqrrpz eq must be true if order is trueceZdZy!TestCase.test_eq_order.<locals>.CNrrrrr%rv rr%ceZdZyrurrrrr%z!TestCase.test_eq_order.<locals>.Crror__lt____le____gt____ge__rrrqunknown result )r2rHrIr(assertNotInrrY)r-rsrresultr%s     r
test_eq_orderzTestCase.test_eq_orders*
$	C%RE651
C[(//
<^_!"b6!!7!!!
"E23*((1::>((1::>((1::>((1::>((1::>6)

h

;

h

;

h

;

h

;

h

;9,

h

;((1::>((1::>((1::>((1::>Bz&BB=
C
C
$	C!!
C
Cs#IIG%IIII	ctGdd}|j|djd|jtd5|dddy#1swYyxYw)Nc&eZdZUeZeed<y))TestCase.test_field_no_default.<locals>.Cr8NrrrrGr8r:r;rrrr%r	sWAsrr%r8__init__\(\) missing 1 required positional argument: 'x')r(r)r8rHrrs  rtest_field_no_defaultzTestCase.test_field_no_defaultse			
		
1#

#
#I%?@	
C			sAA&cBttGfdd}|j|j|d}|j	|jd|`|j|j|j|jy)Nc.eZdZUeWZeed<y)&TestCase.test_field_default.<locals>.CrEr8N)rrrrGr8rr;rsrr%rsg.Av.rr%r)rr(assertIsr8r))r-r%rrEs   @rtest_field_defaultzTestCase.test_field_defaults(		/	/
	/	


acc7#
bEb!
C

acc7#

aceeW%rc@tGdd}|jt5|ddd|d}|jt	|dtGdd}|dd}|jt	|dy#1swYdxYw)Nc*eZdZUedZeed<y)$TestCase.test_not_in_repr.<locals>.CFrNr8Nrrrrr%r&&As&rr%rz&TestCase.test_not_in_repr.<locals>.C()c4eZdZUedZeed<eed<y)rFrr8rNrrrrr%z$TestCase.test_not_in_repr.<locals>.C.s&As&Frz*TestCase.test_not_in_repr.<locals>.C(y=20))r(assertRaisesrr)rNrs   rtest_not_in_reprzTestCase.test_not_in_repr%s		'	'
	'


y
)	
C	
bEa"JK			
	
b"Ia"NO		sBBc$tGdd}|j||dd|j|dd|dd|j|d|dd|j|dd|ddy)	Nc:eZdZUdZeed<eddZeed<y)'TestCase.test_not_in_compare.<locals>.Crr8F)comparerErN)rrrr8r:r;rGrrrrr%r6sAsJ5!4As4rr%rrrCrrrr(r)rrs  rtest_not_in_comparezTestCase.test_not_in_compare5s		5	5
	5	
a2h'1b1Q8,AaD!Ar(+AaHa2h/rcGddd}|jt|5tGdd}ddd|jt|5tGfdd}ddd|jt|5d_tGfdd}dddy#1swYxYw#1swYYxYw#1swYyxYw)	NceZdZdZy)7TestCase.test_no_unhashable_default.<locals>.UnhashableNrrrr
UnhashablerBHrrz-mutable default .* for field a is not allowedceZdZUiZeed<y.TestCase.test_no_unhashable_default.<locals>.Ar%N)rrrr%dictr;rrrArGs4rrc*eZdZUWZeed<yrrrrr%rr;)rsrrz.TestCase.test_no_unhashable_default.<locals>.ALs#3%rcyNrrrrrrz5TestCase.test_no_unhashable_default.<locals>.<lambda>Urrc eZdZUWZeed<yrr)
unhashablesrrz.TestCase.test_no_unhashable_default.<locals>.AVs
#3#r)rHrIr(r)r-
unhashable_rerrrs   @@rtest_no_unhashable_defaultz#TestCase.test_no_unhashable_default@s		H


#
#J

>	



	

#
#J

>	&

&
&
&	&
#
#J

>	$#J"+J

$
$
$	$	$		
	&	&	$	$s#B9C%C9CCCc	zdD]\}|j5tdGfdd}|dk(r+|jt|dtd	n:|d
k(r+|jt|dtdn
Jd|dddy#1swYxYw)
N))TFrG)TTrG)FFabsent)FTr)NFr)NTrG)rrTrc4eZdZUeWWdZeed<y))TestCase.test_hash_field_rules.<locals>.Cr)rrrEr8Nr)rhash_srr%rgs"7JAsJrr%rGr)rrrr~)r2r(r)r)r-rr%rrs   @@rtest_hash_field_ruleszTestCase.test_hash_field_rulesZs.	?)Uw5':
?t,KK-KW$$$T!A$Zd<x'$$T!A$Zb:>OF:">>
?
?	?
?
?sBB11B:	c tGdd}|jd|jtGdd}|jd|dj|jt	|ddddd	y)
Nc*eZdZUedZeed<y).TestCase.test_init_false_no_default.<locals>.CFrMr8Nrrrrr%rwrrr%r8cPeZdZUeed<dZeed<edZeed<dZeed<y	)
rr8rrFrrrtN)	rrrr:r;rrGrrrrrr%z.TestCase.test_init_false_no_default.<locals>.C}s(FAsJ&As&AsKrrrrr)rr8r)r(rrr)varsrs  rtest_init_false_no_defaultz#TestCase.test_init_false_no_defaultts
	'	'
	'	
acll+			
		
admm,ad2AA%>?rctGdd}t|}|j|t|D]G}|j	t|t|j|j|jI|jt|d|j|djd|j|dj
t|jt|d|j|dj |j|dj"|j|djd|j|dj
t$|j't)|d|j|dj |j|dj"|j|djd	|j|dj
t$|jt|d	|j|dj |j|dj"y)
NcReZdZUeed<eddZeed<edZeed<y)%TestCase.test_class_marker.<locals>.Cr8FNrMrErrr)	rrrr:r;rGrrrrrrr%rs'Ft4As4&As&rr%rrr8rCrrMr)r(r+assertIsInstancetuplerrXFieldrYrPr;r)r*r:assertFalserwrvrMrNrassertIsNoner)r-r%
the_fieldsfs    rtest_class_markerzTestCase.test_class_markers		'	'
	'
AY
	
j%0	5AMM$q'5)MM!&&!"3"34	5	
Z!,A++S1A++S1C)A++,A++,A++S1A++S1'!S/*A++,A++,A++S1A++S1C)A++,A++,rcFtGdd}tGdd|}|jt|Dcgc]}|j|jfc}gdtGdd|}|jt|Dcgc]}|j|jfc}gdtGd	d
|}|jt|Dcgc]}|j|jfc}gdycc}wcc}wcc}w)Nc8eZdZUdZeed<dZeed<dZeed<y)$TestCase.test_field_order.<locals>.BB:ar%B:brB:crN)rrrr%rr;rrrrrrrsAsNAsNAsNrrceZdZUdZeed<y)$TestCase.test_field_order.<locals>.CC:brN)rrrrrr;rrrr%rAsNrr%)r%r)rr)rrceZdZUdZeed<y)$TestCase.test_field_order.<locals>.DD:crN)rrrrrr;rrrrbrrrrb)rrrrrc*eZdZUdZeed<dZeed<y)$TestCase.test_field_order.<locals>.EE:ar%E:ddN)rrrr%rr;rrrrErsAsNAsNrr))r%rrr)rr)r(r)r+rPrE)r-rr%rrbrs      rtest_field_orderzTestCase.test_field_orders			
	

		
		
vayA!166199-A(	)

		
		
vayA!166199-A(	)

		
		
vayA!166199-A(	)'BBBsDD*Dc ttGfdd}|jt|d|jt|d|j	|j
|j
|jdy)NcbeZdZUeed<edZeed<WZeed<edZ	eed<y	)
$TestCase.test_class_attrs.<locals>.Cr8FrrrrrrN)
rrrr:r;rGrrrrrsrr%rs0F&As&Av3'As'rr%r8rr)rr(rrwrrr)r)r-r%rEs  @rtest_class_attrszTestCase.test_class_attrsss(		(	(
	(	
C)C)

g&c"rctgdgftiddiftttdgffD]\|j5|j	t
dd5tGfdd}ddd|j	t
dd5tGfd	d}dddGd
d|j	t
d5tGfd
d}dddtGfdd}tGfdd}dddy#1swYxYw#1swYxYw#1swYXxYw#1swY1xYw)NrCrtypzmutable default z for field x is not allowedc"eZdZUWZWed<y)8TestCase.test_disallowed_mutable_defaults.<locals>.Pointr8N)rrrr8r;)emptyrsrPointrs!&3rrz for field y is not allowedc"eZdZUWZWed<y)rrN)rrrrr;)	non_emptyrsrrz8TestCase.test_disallowed_mutable_defaults.<locals>.Points
!*3*rceZdZy);TestCase.test_disallowed_mutable_defaults.<locals>.SubclassNrrrrSubclassrrrrz7mutable default .*Subclass'> for field z is not allowedc,eZdZUWZWed<y)rrN)rrrrr;rrsrrz8TestCase.test_disallowed_mutable_defaults.<locals>.Points!)3+rc2eZdZUWZeWed<y)4TestCase.test_disallowed_mutable_defaults.<locals>.CrN)rrrrrr;rsrr%rs'*uAx},rr%c2eZdZUWZeWed<y)rr8N)rrrr8rr;rsrr%z4TestCase.test_disallowed_mutable_defaults.<locals>.Cs'/zAx}1r)listrsetr2rHrIr()r-rr%rrrrs   @@@@r test_disallowed_mutable_defaultsz)TestCase.test_disallowed_mutable_defaultss'+R!o'+R!A&7'*CE3s8&<&()	2!C	#&%
2++J.>seD?-?@''''	'++J.>seD?-?@++++	+*s)++J-J.,,,,,---222I%
2%
2	)	2''++,,+%
2%
2sT
E(D7?"E!E8)E!E83E7E<EEEEEE%	cGddtGfdd}}||}||}|j|||jjj	ddg|j|||j|jjddg|j|j|jy)NceZdZdZy)<TestCase.test_deliberately_mutable_defaults.<locals>.Mutablecg|_yrlrs rrzETestCase.test_deliberately_mutable_defaults.<locals>.Mutable.__init__
s	rNrrrrrrrMutablers
rrceZdZUWed<y)6TestCase.test_deliberately_mutable_defaults.<locals>.Cr8Nrrrr;)rsrr%rsJrr%rCrM)r(r)r8rextendr)r-r%lsto1o2rs     @r"test_deliberately_mutable_defaultsz+TestCase.test_deliberately_mutable_defaults	s		
		
	i
sV
sVR 


q!fR !Q(

bddBDD!rcvtGdd}|j|djdy)NceZdZUeed<y)#TestCase.test_no_options.<locals>.Cr8Nr9rrrr%r r<rr%r=r>rs  rtest_no_optionszTestCase.test_no_optionss5			
		
2"%rctGdd}|j|dddtGdd}|j|dd|ddy)	Nc"eZdZUeed<eed<y)&TestCase.test_not_tuple.<locals>.Pointr8rNr9rrrrr(rJrrrCrMrCrMc"eZdZUeed<eed<y)"TestCase.test_not_tuple.<locals>.Cr8rNr9rrrr%r/rJrr%r)r(r)r-rr%s   rtest_not_tuplezTestCase.test_not_tuple&sh			
		
E!QK0
		
		
E!QK1a1rctGdd}tGdd}|j|ddd|ddd|j|dd	dd
|jtd5|dd
d\}}}dddtGdd}|j|ddd|y#1swY<xYw)Nc,eZdZUeed<eed<eed<y)2TestCase.test_not_other_dataclass.<locals>.Point3Dr8rrNr9rrrPoint3Dr8FFFrrc,eZdZUeed<eed<eed<y)/TestCase.test_not_other_dataclass.<locals>.DateyearmonthdayNr9rrrDater>sIJHrrirrCrM)rCrMrunpackrrc8eZdZUdZeed<dZeed<dZeed<y)4TestCase.test_not_other_dataclass.<locals>.Point3Dv1rr8rrN)rrrr8r:r;rrrrr	Point3Dv1r"MsAsJAsJAsJrr#r)r(rrHr)r-rrr8rrr#s       rtest_not_other_dataclassz!TestCase.test_not_other_dataclass5s
		
	

		
	
	
GD!Q/dAq1ABGAq!,i8
#
#Ix
8	'aA&GAq!	'

		
		
GAq!,ik:	'	's9CCcGddfd}tGfdd}||tddGfdd}||y)	NceZdZy)-TestCase.test_function_annotations.<locals>.FNrrrrFr'Vr_rr(c<j|jdtj|jdtj|jdj|jdtj|jdt
t
j|j}j|jdt|jj}t|}j|jdt|}j|jdj|j tj|j"tj$j&j|j(tj$j*t|}j|jdj|j tj|j"tj$j&j|j(tj$j*t|}j|jdj|j j|j(tj$j*t|}j|jdj|j tj|j(tj$j*j-t.t|y)Nr3jkrrr-)r)r;r:rfloatcomplexrsrtrrreturn_annotationrruvaluesrrP
annotationrE	ParameterrkindPOSITIONAL_OR_KEYWORDr
StopIteration)rrrtparamsrxr(r-s    rvalidate_classz:TestCase.test_function_annotations.<locals>.validate_classZs
S005s;S005s;S005q9S005u=S005w? ))#,,7IMM)55t<)..5578FLEUZZ0LEUZZ-MMU--s3U]]G,=,=,C,CDUZZ):):)P)PQLEUZZ-MMU--s3U]]G,=,=,C,CDUZZ):):)P)PQLEUZZ-MMU--q1UZZ):):)P)PQLEUZZ-MMU--u5UZZ):):)P)PQmT6:rcpeZdZUeed<eed<WZWed<edZe	ed<edd	Z
eed
<y-TestCase.test_function_annotations.<locals>.Cr3r*r+Nrry@@FrErMrrrrr:r;rr+rGrr,rr-r(rsrr%r96FFAqH4(Au(T6Aw6rr%T)rhrcpeZdZUeed<eed<WZWed<edZe	ed<edd	Z
eed
<yr8r;r<srr%z-TestCase.test_function_annotations.<locals>.Cr=r)r()r-r6r%r(rs`  @@rtest_function_annotationsz"TestCase.test_function_annotationsTsg		
C(	;V
	7	7
	7	q
$D	1	7	7
2	7	qrctGdd}|jtd5|ddd|jd|jtGdd}|jtd5|ddd|jd|jy#1swY{xYw#1swY2xYw)Nc*eZdZUeeZeed<y)(TestCase.test_missing_default.<locals>.Crr8NrrrrGrQr8r:r;rrrr%rBs)As)rr%3__init__\(\) missing 1 required positional argumentr8ceZdZUeed<y)(TestCase.test_missing_default.<locals>.Dr8Nr9rrrrbrFr<rrbr(rHrrrrds   rtest_missing_defaultzTestCase.test_missing_defaults
	*	*
	*

#
#I%:;	
C		
ajj)			
	

#
#I%:;	
C		
ajj)				B,?B8,B58CctGdd}|jtd5|ddd|jd|jtGdd}|jtd5|ddd|jd|jy#1swY{xYw#1swY2xYw)Nc*eZdZUeeZeed<y)0TestCase.test_missing_default_factory.<locals>.Crr8NrCrrrr%rLs1As1rr%rDr8c,eZdZUeeeZeed<y)0TestCase.test_missing_default_factory.<locals>.DrDr8NrCrrrrbrNs'BAsBrrbrGrds   rtest_missing_default_factoryz%TestCase.test_missing_default_factorys
	2	2
	2

#
#I%:;	
C		
ajj)		C	C
	C

#
#I%:;	
C		
ajj)				rIcB|jdtty)NzMISSING_TYPE object)rYrNrQrs rtest_missing_reprzTestCase.test_missing_reprs

+T'];rcJtGdd}|jt|jdg|j|dj	d|j|dj
d|j|djdy)Nc:eZdZUeed<defdZedefdZy)7TestCase.test_dont_include_other_annotations.<locals>.Cr3returncyNrrrs rrz;TestCase.test_dont_include_other_annotations.<locals>.C.foorcyNrrrs rbarz;TestCase.test_dont_include_other_annotations.<locals>.C.barsrN)rrrr:r;rpropertyr[rrrr%rTs,F
S


S

rr%r3rrr)r(r)rr;rr[r3rs  r#test_dont_include_other_annotationsz,TestCase.test_dont_include_other_annotationss			
		
a//03%82a(2A&2"%rctGdd}|jt5|dddtGdd}|jt5|ddd|dtdGdd}|tGdd}|j|jd	|j|d
jdtd
Gdd}|jt
5|dddy#1swYxYw#1swYxYw#1swYyxYw)NceZdZdZy)"TestCase.test_post_init.<locals>.Cctrrrs r
__post_init__z0TestCase.test_post_init.<locals>.C.__post_init__
!m#rNrrrrcrrrr%r`
$rr%c"eZdZUdZeed<dZy)r`rr3c6|jdk(r
tyNr)r3rrs rrcz0TestCase.test_post_init.<locals>.C.__post_init__s66R<%-' rN)rrrr3r:r;rcrrrr%z"TestCase.test_post_init.<locals>.CsAsK
(rrFrceZdZdZy)r`ctrrbrs rrcz0TestCase.test_post_init.<locals>.C.__post_init__rdrNrerrrr%z"TestCase.test_post_init.<locals>.Crfrc"eZdZUdZeed<dZy)r`rr8c.|xjdzc_yNrMr~rs rrcz0TestCase.test_post_init.<locals>.C.__post_init__!rNrrrr8r:r;rcrrrr%z"TestCase.test_post_init.<locals>.CAsJ
rrrMrTrc"eZdZUdZeed<dZy)r`rr8c.|xjdzc_yrnr~rs rrcz0TestCase.test_post_init.<locals>.C.__post_init__rorNrprrrr%z"TestCase.test_post_init.<locals>.Crqr)r(rrr)r8FrozenInstanceErrorrs  rtest_post_initzTestCase.test_post_initsJ		$	$
	$

{
+	
C	
	(	(
	(


{
+	
C		
!
		$	$
	$	
			
		
"1#
$			
 	

2
3	
C		M				:		s#D.!D:E.D7:EEcGdd}tGdd|}|j|jdtGdd|}|jt5|dddtGdd|}|jt5|dddy#1swYCxYw#1swYyxYw)NceZdZdZy)(TestCase.test_post_init_super.<locals>.Bctrrbrs rrcz6TestCase.test_post_init_super.<locals>.B.__post_init__rdrNrerrrrrxs
$rrceZdZdZy)(TestCase.test_post_init_super.<locals>.Ccd|_yrZr~rs rrcz6TestCase.test_post_init_super.<locals>.C.__post_init__
	rNrerrrr%r{s
rr%rceZdZfdZxZS)r{c"t|yr)superrcr-	__class__s rrcz6TestCase.test_post_init_super.<locals>.C.__post_init__s%'r)rrrrc
__classcell__rs@rr%z(TestCase.test_post_init_super.<locals>.Cs

(
(rceZdZy)r{Nrrrrr%z(TestCase.test_post_init_super.<locals>.Cr&r)r(r)r8rrr-rr%s   rtest_post_init_superzTestCase.test_post_init_supers	$	$
		
		
"
	(	(
	(

{
+	
C	

		
	

{
+	
C						s)B3"B?3B<?CcdtGfdd}|j|dd}|j|j|jfd|jy)NFc8eZdZUeed<eed<efdZy)/TestCase.test_post_init_staticmethod.<locals>.Cr8rc
dyNTrflagsrrcz=TestCase.test_post_init_staticmethod.<locals>.C.__post_init__*s
rN)rrrr:r;staticmethodrcrsrr%r&sFF


rr%rrrr)r(rr)r8rrv)r-r%rrs   @rtest_post_init_staticmethodz$TestCase.test_post_init_staticmethod$sb			
		

aG!##qssV,rctGdd}|j|j|dd}|j|j|j
fd|j
|jy)Nc6eZdZUdZeed<eed<edZy).TestCase.test_post_init_classmethod.<locals>.CFr8rcd|_yrrr"s rrcz<TestCase.test_post_init_classmethod.<locals>.C.__post_init__:s	rN)rrrrr:r;classmethodrcrrrr%r5s#DFF

 
 rr%rrr)r(rrr)r8rrvrs   rtest_post_init_classmethodz#TestCase.test_post_init_classmethod4sd		 	 
	 	
 
aG!##qssV,rctGdd}tGdd}tGdd||}|}|j|j|j|jtGdd}tGd	d
}tGdd||}|}|j	|j|j|jy)
NceZdZy)2TestCase.test_post_init_not_auto_added.<locals>.A0NrrrrA0rHr&rrc"eZdZUdZeed<dZy)2TestCase.test_post_init_not_auto_added.<locals>.B0Fb_calledcd|_yrrrs rrcz@TestCase.test_post_init_not_auto_added.<locals>.B0.__post_init__O	 $
rNrrrrboolr;rcrrrB0rL"Hd"
%rrc.eZdZUdZeed<fdZxZS)2TestCase.test_post_init_not_auto_added.<locals>.C0Fc_calledc0t|d|_yrrrcrrs rrcz@TestCase.test_post_init_not_auto_added.<locals>.C0.__post_init__U%' $
rrrrrrr;rcrrs@rrrR"Hd"
%
%rrceZdZdZy)2TestCase.test_post_init_not_auto_added.<locals>.A1cyrrrs rrcz@TestCase.test_post_init_not_auto_added.<locals>.A1.__post_init__errNrerrrA1rcs
rrc"eZdZUdZeed<dZy)2TestCase.test_post_init_not_auto_added.<locals>.B1Frcd|_yrrrs rrcz@TestCase.test_post_init_not_auto_added.<locals>.B1.__post_init__krrNrrrrB1rhrrrc.eZdZUdZeed<fdZxZS)2TestCase.test_post_init_not_auto_added.<locals>.C1Frc0t|d|_yrrrs rrcz@TestCase.test_post_init_not_auto_added.<locals>.C1.__post_init__qrrrrs@rrrnrrr)r(rvrrr)r-rrrrrrrs        rtest_post_init_not_auto_addedz&TestCase.test_post_init_not_auto_addedCs

		
	
	%	%
	%

	%R	%
	%
D

#

#
		
	
	%	%
	%

	%R	%
	%
D$

#rctGdd}|d}|jt|d|jtt	|d|jt|j
d|j|jd|j|jd|j|jd	|j|jd
|xjdz
c_|j|jd|d
}|j|j|jfd|j|jd|j|jd|j|jd	|j|jd
y)NcpeZdZUeed<dZeed<dZeeed<dZeeed<dZ	eeed	<d
Z
eed<y)
"TestCase.test_class_var.<locals>.Cr8rrrwrsN)rrrr:r;rrrrrrrrrr%rsDFAsK#Ax}##Ax}##Ax}##Ax#rr%rz-TestCase.test_class_var.<locals>.C(x=5, y=10)rMrrrrrrCrrr)r(r)rNr*r+r;rrrrr8rrs   rtest_class_varzTestCase.test_class_var~sR		$	$
	$
aDa"QRVAY+Q../3d#d#d#d#	qd#
bE!##qssX.d#d#d#d#rcbtGdd}|jd|jy)NceZdZUeeed<y)-TestCase.test_class_var_no_default.<locals>.Cr8N)rrrrr:r;rrrr%rs}rr%r8r(rrrs  rtest_class_var_no_defaultz"TestCase.test_class_var_no_defaults/			
		
ajj)rc|jtd5tGdd}|jd|jdddy#1swYyxYw)Ncannot have a default factoryc0eZdZUeeZeeed<y)2TestCase.test_class_var_default_factory.<locals>.Crr8NrrrrGr:r8rr;rrrr%r#(#=8C==rr%r8rHrr(rrrs  rtest_class_var_default_factoryz'TestCase.test_class_var_default_factorysZ
#
#I$CE	.

>
>
>
S!**-
	.	.	.0AActGdd}|j|jdtGdd}|j|jdy)Nc"eZdZUdZeeed<y)/TestCase.test_class_var_with_default.<locals>.Crr8N)rrrr8rr:r;rrrr%rs!Ax}!rr%rc0eZdZUedZeeed<y)rrrr8N)rrrrGr8rr:r;rrrr%z/TestCase.test_class_var_with_default.<locals>.Cs$R0Ax}0rr>rs  rtest_class_var_with_defaultz$TestCase.test_class_var_with_defaultsX		"	"
	"b!		1	1
	1b!rc,tdGdd}|d}|jt|dd|jtt	|d|jt|j
d|j|jd|j|jd	|j|jd
|xjdz
c_|j|jd|d
}|j|j|jfd|j|jd|j|jd	|j|jd
y)NTrcbeZdZUeed<dZeed<dZeeed<dZeeed<dZ	eeed	<y
))TestCase.test_class_var_frozen.<locals>.Cr8rrrrrrrrN)
rrrr:r;rrrrrrrrr%rs:FAsK#Ax}##Ax}##Ax}#rr%rz4TestCase.test_class_var_frozen.<locals>.C(x=5, y=10)rMrrrrCrrr)r(r)rNr*r+r;rrrr8rrs   rtest_class_var_frozenzTestCase.test_class_var_frozens5	$		$	$
 	$
aDad%[\VAY+Q../3d#d#d#	
qd#
bE!##qssX.d#d#d#rcbtGdd}|jd|jy)NceZdZUeeed<y),TestCase.test_init_var_no_default.<locals>.Cr8N)rrrInitVarr:r;rrrr%rss|Orr%r8rrs  rtest_init_var_no_defaultz!TestCase.test_init_var_no_defaults/			
		
ajj)rc|jtd5tGdd}|jd|jdddy#1swYyxYw)Nrc0eZdZUeeZeeed<y)1TestCase.test_init_var_default_factory.<locals>.Crr8N)rrrrGr:r8rr;rrrr%rs"'"<73<<rr%r8rrs  rtest_init_var_default_factoryz&TestCase.test_init_var_default_factorysZ
#
#I$CE	.

=
=
=
S!**-
	.	.	.rctGdd}|j|jdtGdd}|j|jdy)Nc"eZdZUdZeeed<y).TestCase.test_init_var_with_default.<locals>.Crr8N)rrrr8rr:r;rrrr%rs Aws| rr%rc0eZdZUedZeeed<y)rrrr8N)rrrrGr8rr:r;rrrr%z.TestCase.test_init_var_with_default.<locals>.Cs#B/Aws|/rr>rs  rtest_init_var_with_defaultz#TestCase.test_init_var_with_defaultsX		!	!
	!b!		0	0
	0b!rcttGdd}|d}|j|jdy)Nc6eZdZUdZeed<dZeeed<dZy)!TestCase.test_init_var.<locals>.CNr8
init_paramc2|j|dz|_yyrnr~)r-rs  rrcz/TestCase.test_init_var.<locals>.C.__post_init__s66>'\DF"r)	rrrr8r:r;rrrcrrrr%rsAsM'+J+
*rr%r)rrr>rs   r
test_init_varzTestCase.test_init_vars9		*	*
	*
b!rc|jttjt|jt	ttd|jt	tt
td|jt	tttd|jt	tttzdy)Ndataclasses.InitVar[int]z%dataclasses.InitVar[typing.List[int]]zdataclasses.InitVar[list[int]]zdataclasses.InitVar[int | str])r)rr:rXrNrrrrs rtest_init_var_preserve_typez$TestCase.test_init_var_preserve_types**C0	
gcl+-GHgd3i01@	Bgd3i019	;gc#g./9	;rctGdd}|dd}|jt|dditGdd|}|ddd	d
}|jt|ddd
y)Nc(eZdZUeed<eeed<y)0TestCase.test_init_var_inheritance.<locals>.Baser8	init_baseN)rrrr:r;rrrrrrsFs|#rrrrr8c.eZdZUeed<eeed<dZy)-TestCase.test_init_var_inheritance.<locals>.Crinit_derivedcT|j|z|_|j|z|_yrr8r)r-rrs   rrcz;TestCase.test_init_var_inheritance.<locals>.C.__post_init__s")+,.rNrrrr:r;rrcrrrr%rsF!#,&
/rr%23er)r(r)r)r-rrr%rs     rtest_init_var_inheritancez"TestCase.test_init_var_inheritances
	$	$
	$
BKa3(+		/	/
	/
b"b"a"56rc*tGdd}|d}|d}|j|jd|j|jg|j|||j	|j|j|jt|ddgddgfgtGfdd}|d}|d}|j|jd|j|jg|j|||j
|j|j|jt|ddgddgftGdd}|jt|d|j|jgtd	
Gdd}|jt|gf|jt|tdtGd
d}|jt|gftGdd}|j||dgy)Nc4eZdZUeed<eeZeed<y)(TestCase.test_default_factory.<locals>.Cr8rrN)rrrr:r;rGrrrrrr%r(sFD1At1rr%rrrCc<eZdZUeed<efdZeed<y)rr8cSrrrsrrz1TestCase.test_default_factory.<locals>.C.<lambda>:sArrrN)rrrr:r;rGrrrsrr%z(TestCase.test_default_factory.<locals>.C7sFI6At6rc,eZdZUeedZeed<y)rF)rFrNr8NrrrrGrr8r;rrrr%z(TestCase.test_default_factory.<locals>.CFDu=At=rz*TestCase.test_default_factory.<locals>.C()Trc,eZdZUeedZeed<y)rF)rFrr8Nr
rrrr%z(TestCase.test_default_factory.<locals>.CMrrrc,eZdZUeedZeed<y)rFrFrMr8Nr
rrrr%z(TestCase.test_default_factory.<locals>.CTrrc,eZdZUeedZeed<y)rF)rFrr8Nr
rrrr%z(TestCase.test_default_factory.<locals>.CZsD%@At@r)	r(r)r8rassertIsNotastuplerrNr)r-r%c0c1rs    @rtest_default_factoryzTestCase.test_default_factory&s?		2	2
	2qT
qTq!r"R rtt$1qc+a!X6
		7	7
	7qT
qTq!r"R 

bddBDD!1qc+a!X6
	>	>
	>ac$PQ#
t	$	>	>
%	>u-acDH-
	>	>
	>u-
	A	A
	Aaf%rcttGfdd}|j|jjd|j|jjdy)Nc0eZdZUeWdZeed<y)5TestCase.test_default_factory_with_no_init.<locals>.CFrr8N)rrrrGr8rr;factorysrr%rcsG%@At@rr%rCrMrr(r8r)
call_countr-r%rs  @r!test_default_factory_with_no_initz*TestCase.test_default_factory_with_no_init_sd&		A	A
	A	
++Q/	++Q/rctttGfdd}|j|jjd|j|djd|jjd|j|jjdy)Nc.eZdZUeWZeed<y)BTestCase.test_default_factory_not_called_if_value_given.<locals>.Crr8Nrrsrr%r qs73As3rr%rCrrMrrs  @r.test_default_factory_not_called_if_value_givenz7TestCase.test_default_factory_not_called_if_value_givenms&		4	4
	4
	
++Q/2"%++Q/	++Q/rctGdd}tGdd|}|j|ji|j|ji|j|jdtGdd|}|j|jiy)Nc*eZdZUeeZeed<y)2TestCase.test_default_factory_derived.<locals>.Foorr8N)rrrrGrr8r;rrrFoor$sD1At1rr%ceZdZUdZeed<y)2TestCase.test_default_factory_derived.<locals>.BarrCrNrrrrr:r;rrrBarr'AsJrr)rCceZdZy)2TestCase.test_default_factory_derived.<locals>.BazNrrrrBazr,r&rr-)r(r)r8r)r-r%r)r-s    rtest_default_factory_derivedz%TestCase.test_default_factory_derived~s		2	2
	2
	#	
		
"%"%!$		#	
	"%rctGdd}Gdd|}tGdd|}|dd}|j|j|jfd	|j	t
d
5|jdddGdd|}|d
d}|j|j|jfdy#1swYFxYw)NceZdZUeed<y)3TestCase.test_intermediate_non_dataclass.<locals>.Ar8Nr9rrrrr1r<rrceZdZUeed<y)3TestCase.test_intermediate_non_dataclass.<locals>.BrNr9rrrrr3FrrceZdZUeed<y)3TestCase.test_intermediate_non_dataclass.<locals>.CrNr9rrrr%r6r<rr%rCr)rCrzobject has no attributeceZdZUeed<y)3TestCase.test_intermediate_non_dataclass.<locals>.DrNr9rrrrbr8r4rrbrr)rr)r(r)r8rrHAttributeErrorr)r-rrr%rrbrs       rtest_intermediate_non_dataclassz(TestCase.test_intermediate_non_dataclasss
		
			
		
	
aG!##qssV,
#
#N$=?	
CC	
		
aG!##qssV,		s:
CCc|jtd5tGdd}dddy#1swYyxYw)Nrc0eZdZUeeZeeed<y)1TestCase.test_classvar_default_factory.<locals>.Crr8Nrrrrr%r=rrr%rHrr(rs  rtest_classvar_default_factoryz&TestCase.test_classvar_default_factorysB

#
#I$CE	>

>
>
>	>	>	>4=cGdd}|jtd|jtt|jt||jt|tGddtGfdd}d}||d	}|j	t|j	t||jt|j
|j	t|j|jt|jy)
NceZdZy)0TestCase.test_is_dataclass.<locals>.NotDataClassNrrrrNotDataClassrCr_rrDrceZdZUeed<y)%TestCase.test_is_dataclass.<locals>.Cr8Nr9rrrr%rFr<rr%c&eZdZUWed<eed<y)%TestCase.test_is_dataclass.<locals>.DreNrrrr;r:)r%srrbrHs
DFrrbrr)ris_dataclassr:r(rvr8rrI)r-rDrbrrr%s     @rtest_is_dataclasszTestCase.test_is_dataclasss			
a)c*+l34ln56			
	
		
	
bE
aGQ(Q(acc*+QSS)*acc*+rcfGdd}|jt||}Gdd}|}g|_||fD]}|j|5|jt||j	t
d5t
|ddd|j	t
d5t|ddd|j	t
d5t|dddddddy#1swYjxYw#1swYLxYw#1swY,xYw#1swYxYw)	NceZdZdZy)ATestCase.test_is_dataclass_when_getattr_always_returns.<locals>.Acyrr)r-keys  r__getattr__zMTestCase.test_is_dataclass_when_getattr_always_returns.<locals>.A.__getattr__rXrN)rrrrRrrrrrOs
rrceZdZy)ATestCase.test_is_dataclass_when_getattr_always_returns.<locals>.BNrrrrrrTr_rr)objz'should be called on dataclass instancesrr~)	rrKrcr2rHrasdictrreplace)r-rr%rrrUs      r-test_is_dataclass_when_getattr_always_returnsz6TestCase.test_is_dataclass_when_getattr_always_returnss			
a)
C		
C!#a4
	&C#&	
&  c!23++I7`a 3K ++I7`a!CL!++I7`a&C1%&	
&	
&
	&
  !!&&	
&	
&sT1D'DD'8DD'"D0D'DD'DD'D$ D''D0	ctGddtj}|jt	||t
t}|jt	t||jt	|y)Nc"eZdZUeed<eed<y)2TestCase.test_is_dataclass_genericalias.<locals>.AoriginargsN)rrrrXr;rrrrr[sLJrr)r(typesGenericAliasrvrKrr:rXr-rr%s   rtest_is_dataclass_genericaliasz'TestCase.test_is_dataclass_genericaliassc		""	
		
Q(
dCLT!W-.Q(rc	tGdd}|jt|t|ddy)Nc"eZdZUeed<eed<y):TestCase.test_helper_fields_with_class_instance.<locals>.Cr8rN)rrrr:r;r,rrrr%rdsFHrr%rg)r(r)r+rs  r&test_helper_fields_with_class_instancez/TestCase.test_helper_fields_with_class_instances<
		
		
F1Q9$56rcf|jtd5tddddGdd}|jtd5t|ddd|jtd5t|dddy#1swYmxYw#1swYExYw#1swYyxYw)Nzdataclass type or instancerceZdZy)0TestCase.test_helper_fields_exception.<locals>.CNrrrrr%rhrrr%)rHrr+rs  rtest_helper_fields_exceptionz%TestCase.test_helper_fields_exceptions
#
#I/K
L	1I		


#
#I/K
L	1I	

#
#I/K
L	13K		
						s#BB5B'BB$'B0ctj}	tt|j}|jd||jd|y#t$r!}tj||Yd}~Zd}~wwxYw)N)filer9rc)	ioStringIOr+rr	tracebackprint_exceptiongetvaluer)r-stdoutexcprinted_tracebacks    r*test_clean_traceback_from_fields_exceptionz3TestCase.test_clean_traceback_from_fields_exceptionsq	86N#OO-)+<=/1BC		8%%c77	8sA	B#A??BctGdd}|dd}|jt|ddd|jt|t||jt|t|d|_|jt|ddd|jt
t|ty)Nc"eZdZUeed<eed<y)&TestCase.test_helper_asdict.<locals>.Cr8rNr9rrrr%rwrJrr%rCrMrr=)r(r)rVrr8rrXrrs   rtest_helper_asdictzTestCase.test_helper_asdicts			
	
aG!!$45F1I.F1I."1$56

d6!9ot,rc
tGdd}|jtd5t|ddd|jtd5ttdddy#1swY8xYw#1swYyxYw)Nc"eZdZUeed<eed<y)8TestCase.test_helper_asdict_raises_on_classes.<locals>.Cr8rNr9rrrr%r{'rJrr%dataclass instance)r(rHrrVr:rs  r$test_helper_asdict_raises_on_classesz-TestCase.test_helper_asdict_raises_on_classes%sz			
	
#
#I/C
D	1I	

#
#I/C
D	3K						A-A9-A69Bc0tGdd}g}|d|}t|}|j|d||j|d||d}t|}|dj	d|j|j
gy)Nc:eZdZUeed<eeZeeed<y)2TestCase.test_helper_asdict_copy_values.<locals>.Cr8rrN	rrrr:r;rGrrrrrrr%r1F 6AtCy6rr%rCr)r(rVr)rappendr)r-r%initialrrs     rtest_helper_asdict_copy_valuesz'TestCase.test_helper_asdict_copy_values0s		7	7
	7
aM1I3)3)
aD1I	#

ab!rchtGddtGfdd}|ddd}t|}|j|ddddd	|jt|t|d
|j_|jt|ddd
dd	y)Nc"eZdZUeed<eed<y)2TestCase.test_helper_asdict_nested.<locals>.UserIdtokengroupNr9rrrUserIdr@JJrrc&eZdZUeed<Wed<y)0TestCase.test_helper_asdict_nested.<locals>.UserrPrONrrsrUserrD
IJrrJoe{rC)rrrPrOrM)r(rVr)rrOr)r-rurrs    @rtest_helper_asdict_nestedz"TestCase.test_helper_asdict_nested?s			
	
		
	
sA'1IUC!2LMNF1I.
U581+E%G	Hrc	tGdd	tG	fdd}tG	fdd}tG	fdd}	d	d
}	dd}|d
||g}|d
||f}|d
||d}|jt|d
d	d
ddddgd|jt|d
d	d
ddddfd|jt|d
d	d
ddddddy)Nc"eZdZUeed<eed<y)<TestCase.test_helper_asdict_builtin_containers.<locals>.UserrPrONrrrrr;r:rrrrrQIGrrc,eZdZUeed<eWed<y)ATestCase.test_helper_asdict_builtin_containers.<locals>.GroupListrOusersNrrrr:r;rrsr	GroupListrUG:rrc0eZdZUeed<eWdfed<y)BTestCase.test_helper_asdict_builtin_containers.<locals>.GroupTuplerO.rNrrrr:r;r	rsr
GroupTuplerYGs##rrc0eZdZUeed<eeWfed<y)ATestCase.test_helper_asdict_builtin_containers.<locals>.GroupDictrOrNrrrr:r;r
rrsr	GroupDictr]GT	?"rrAlicerCBobrMrrsecondr)rOrr(r)rV
r-rrrr%rglgtgdrs
         @r%test_helper_asdict_builtin_containersz.TestCase.test_helper_asdict_builtin_containersPsI			
	
		
	
	$	$
	$
	#	#
	#
!N
q1a&
!
Aq6
"
qA3
4A'QR9SBGq9Q9S&T	UA'QR9SBGq9Q9S&T	UA7Z[B\LQYZC[9]&^	_rc
tGddtGfdd}|jt|dgdddgii|jt|ddiddddiiiy)	NceZdZUeed<y)DTestCase.test_helper_asdict_builtin_object_containers.<locals>.ChildrNrrrrr;rrrChildrnIrrceZdZUWed<y)ETestCase.test_helper_asdict_builtin_object_containers.<locals>.ParentchildNrrsrParentrrLrrrCrrrMrr-rrs  @r,test_helper_asdict_builtin_object_containersz5TestCase.test_helper_asdict_builtin_object_containersms			
	
		
		
uaSz 23gaSz5JKuaV} 563A-8PQrctGdd}|dd}t|t}|j|tddg|j	|t|td|_t|t}|j|td	dg|j
t|ty)
Nc"eZdZUeed<eed<y).TestCase.test_helper_asdict_factory.<locals>.Cr8rNr9rrrr%rzrJrr%rCrMdict_factory)r8rC)rrMr=)r8r=)r(rVrr)rr8rrXr-r%rrs    rtest_helper_asdict_factoryz#TestCase.test_helper_asdict_factoryys			
	
aG1;/K8(<=>F1;?@1;/KH(=>?

d1g{+rctddtGfdd}|dd|ddd	d
d}t|}|j|ddddd	d
dddt|t
}|j|ddddd	d
ddd|jt
|t|jt
|ddty)NTa b cc&eZdZUeed<Wed<y)1TestCase.test_helper_asdict_namedtuple.<locals>.Cr8rNrrsrr%r
FDrr%outerrCinnerr
rMrrr)rr(rVr)rrrX)r-r%rrrs    @rtest_helper_asdict_namedtuplez&TestCase.test_helper_asdict_namedtuplessG$			
	
gqAgqR}5q9:1I'"#A*1*+BB-%9$%#'	
1;/'"#A*1*+BB-%9$%#'		


d1g{+

d1S6!9o{3rctGdd}tdd}||ddi}|jt|d|ddiiy)	NceZdZUeed<y)5TestCase.test_helper_asdict_namedtuple_key.<locals>.CrN)rrrrr;rrrr%rsGrr%rr%zan arrr%)r(rr)rV)r-r%rrs    r!test_helper_asdict_namedtuple_keyz*TestCase.test_helper_asdict_namedtuple_keys[
		
	sC 
qy!nS1v;*:$;<rc6GddtddtGfdd}d}||}t|}|j|dd	i|j	|d||j|djdy)
NceZdZdZy)9TestCase.test_helper_asdict_namedtuple_derived.<locals>.Tc|jSrrrs rmy_az>TestCase.test_helper_asdict_namedtuple_derived.<locals>.T.my_avv
rN)rrrrrrrrr
rrTbaser%ceZdZUWed<y)9TestCase.test_helper_asdict_namedtuple_derived.<locals>.CrNrrsrr%rDrr%rrr)rr(rVr)rr)r-r%rrrrs     @r%test_helper_asdict_namedtuple_derivedz.TestCase.test_helper_asdict_namedtuple_deriveds	
7C(	
		
	
aD
aD1IS!a&M*3#3*rctGdd}tt}|djd||}t	|}|j|dddgii|j
|d|juy)Nc"eZdZUeeefed<y)2TestCase.test_helper_asdict_defaultdict.<locals>.CmpNrrrrrrr;rrrr%rCI&&rr%r8rrr)r(rrrrVr)rvr)r-r%ddrrs     rtest_helper_asdict_defaultdictz'TestCase.test_helper_asdict_defaultdicts}
	'	'
	'

3r
H1ITC";/0$qtt+,rctGdd}|d}|jt|d|jt|t||jt|t|d|_|jt|d|jt
t|ty)Nc&eZdZUeed<dZeed<y)'TestCase.test_helper_astuple.<locals>.Cr8rrNrrrrr%rrrr%rC)rCrr=)rCr=)r(r)rrrrrXrrs   rtest_helper_astuplezTestCase.test_helper_astuples			
	
aDV,WQZ0WQZ0W-

d71:&.rc
tGdd}|jtd5t|ddd|jtd5ttdddy#1swY8xYw#1swYyxYw)Nc"eZdZUeed<eed<y)9TestCase.test_helper_astuple_raises_on_classes.<locals>.Cr8rNr9rrrr%rrJrr%r|)r(rHrrr:rs  r%test_helper_astuple_raises_on_classesz.TestCase.test_helper_astuple_raises_on_classessz			
	
#
#I/C
D	AJ	

#
#I/C
D	CL						r~c0tGdd}g}|d|}t|}|j|d||j|d||d}t|}|dj	d|j|j
gy)Nc:eZdZUeed<eeZeeed<y)3TestCase.test_helper_astuple_copy_values.<locals>.Cr8rrNrrrrr%rrrr%rC)r(rr)rrr)r-r%rrrs     rtest_helper_astuple_copy_valuesz(TestCase.test_helper_astuple_copy_valuess		7	7
	7
aMAJ1w'1w'
aDAJ	!Ab!rcPtGddtGfdd}|ddd}t|}|j|d|jt|t|d	|j_|jt|d
y)Nc"eZdZUeed<eed<y)3TestCase.test_helper_astuple_nested.<locals>.UserIdrrNr9rrrrrrrrc&eZdZUeed<Wed<y)1TestCase.test_helper_astuple_nested.<locals>.UserrPrONrrsrrrrrrrrrC)r)rrCrM)r)rrM)r(rr)rrOr)r-rrrrs    @rtest_helper_astuple_nestedz#TestCase.test_helper_astuple_nesteds			
	
		
	
sA'AJ-.WQZ0
%67rc	tGdd	tG	fdd}tG	fdd}tG	fdd}	d	d
}	dd}|d
||g}|d
||f}|d
||d}|jt|d
ddgf|jt|d|jt|d
dddfy)Nc"eZdZUeed<eed<y)=TestCase.test_helper_astuple_builtin_containers.<locals>.UserrPrONrrrrrrrrrc,eZdZUeed<eWed<y)BTestCase.test_helper_astuple_builtin_containers.<locals>.GroupListrOrNrrsrrr	rrrc0eZdZUeed<eWdfed<y)CTestCase.test_helper_astuple_builtin_containers.<locals>.GroupTuplerO.rNrrsrrrrrrc0eZdZUeed<eeWfed<y)BTestCase.test_helper_astuple_builtin_containers.<locals>.GroupDictrOrNrrsrrr
rrrrrCrrMrrrrCrrM)r)rrr(r)rrs
         @r&test_helper_astuple_builtin_containersz/TestCase.test_helper_astuple_builtin_containerss			
	
		
	
	$	$
	$
	#	#
	#
!N
q1a&
!
Aq6
"
qA3
4q<*D&EF&EFqLJ*W&XYrc
tGddtGfdd}|jt|dgdgff|jt|ddiddiffy)NceZdZUeed<y)ETestCase.test_helper_astuple_builtin_object_containers.<locals>.ChildrNrrrrrr*rrrceZdZUWed<y)FTestCase.test_helper_astuple_builtin_object_containers.<locals>.ParentrNrrsrrr.rrrrCrMrrs  @r-test_helper_astuple_builtin_object_containersz6TestCase.test_helper_astuple_builtin_object_containers)s			
	
		
		
qc
!34vi@q!f
!67Aq6)FrcvtGdd}tddfd}|dd}t||}|j|dd|j	|t||d	|_t||}|j|d	d|j
t|y)
Nc"eZdZUeed<eed<y)/TestCase.test_helper_astuple_factory.<locals>.Cr8rNr9rrrr%r6rJrr%NTzx yc|Srr)rrs rntz0TestCase.test_helper_astuple_factory.<locals>.nt;ss8OrrCrM
tuple_factoryr=)r(rrr)rr8rrX)r-r%rrrrs     @rtest_helper_astuple_factoryz$TestCase.test_helper_astuple_factory5s			
	e
$	
aGAR(Bq!H%GAR89AR(Br1I&

d1gr"rcDtddtGfdd}|dd|ddd	d
d}t|}|j|ddddft|t
}|j|ddddd	d
gdgy)Nrrc&eZdZUeed<Wed<y)2TestCase.test_helper_astuple_namedtuple.<locals>.Cr8rNrrsrr%r#Hrrr%rrCrrrrrM)r)rrrr)rr(rr)r)r-r%rrrs    @rtest_helper_astuple_namedtuplez'TestCase.test_helper_astuple_namedtupleFssG$			
	
gqAgqR}5q9:AJWa+BA&FGH
AT*WaGQr2r]+CQ&GHIrctGdd}tt}|djd||}t	|}|j|ddgif|j
|d|uy)Nc"eZdZUeeefed<y)3TestCase.test_helper_astuple_defaultdict.<locals>.CrNrrrrr%r'Xrrr%r8rrr)r(rrrrr)rv)r-r%rrrs     rtest_helper_astuple_defaultdictz(TestCase.test_helper_astuple_defaultdictUsu
	'	'
	'

3r
HAJcB4[N+!B'rcdttdi}tdd|}t|}|j|||jt	|dddddy)Nr;rr%rrCrM)r:rXr(r)rVr-cls_dictrrcls1s    rtest_dynamic_class_creationz$TestCase.test_dynamic_class_creationds^%Ss';3H%~s#Aq	*!!,<=rcttdtdd}tdd|}t|}|j	|||j	t|ddddy)Nrrr)r;rr%rrC)r:rGrXr(r)rVr*s    r'test_dynamic_class_creation_using_fieldz0TestCase.test_dynamic_class_creation_using_fieldqsa-0s';q)
3H%~s#Q*:;rcXtGdd}gfd}||_|dd}|jdd|jdd|jdgfd	|jd
gfd|jd|jd
dy)NceZdZUeed<eZeed<eedZeed<eeZ	eed<edd	Z
eed
<dZeed<y)
&TestCase.test_init_in_order.<locals>.Cr%rFrrrrrr:rIrN)rrrr:r;rGrrrrrIrrrrr%r2sMFWAsDu=At=D1At1151As1AsJrr%c,j||fyr)r)r-rPvaluecallss   rsetattrz,TestCase.test_init_in_order.<locals>.setattrsLL$'rrrC)r%r)rrCrrMrr)rIr)rrr)r(__setattr__r)r)r-r%r6rr5s    @rtest_init_in_orderzTestCase.test_init_in_orders			
		( 

aG58,58,#rE!H-#rE!H-5)58,rctGdd}|d}|jd|j|jd|j|jd|j|jd|j|j	|j
d|jd	|j|j	|jd|jd|j|j	|jd|jd|j|j	|jg|jd|j|j	|jg|jd|j|jd	|j|j	|jdy)
Nc~eZdZUeed<eedZeed<eeZeed<eddZ	eed	<d
Z
eed<y)
'TestCase.test_items_in_dicts.<locals>.Cr%Frrrrrr:rrrIN)rrrr:r;rGrrrrrIrrrr%r;sAFDu=At=D1At1151As1AsJrr%rr%rrrrrI)
r(rrrYr)rrIr%rrrs   rtest_items_in_dictszTestCase.test_items_in_dictssX			
	
aDajj)ajj)ajj)

c1::&a 

c1::&a 

c1::&a 

c1::&b!

c1::&b!ajj)

c1::&a rctGdd}|j|jdjdy)Nc(eZdZUeed<edZy):TestCase.test_alternate_classmethod_constructor.<locals>.Cr8cd}||S)Nrr)rrfilename
value_in_files   r	from_filezDTestCase.test_alternate_classmethod_constructor.<locals>.C.from_files!#
=))rN)rrrr:r;rrCrrrr%r?sF

*
*rr%rAr)r(r)rCr8rs  r&test_alternate_classmethod_constructorz/TestCase.test_alternate_classmethod_constructors<
	*	*
	*	
Z022B7rcftGdd}|jt|dj|j	tt|djd|j
td5dt|djd<dddy#1swYyxYw)NceZdZUeed<y)/TestCase.test_field_metadata_default.<locals>.Cr3Nr9rrrr%rGr<rr%r does not support item assignmentrtest)r(rr+metadatar)r*rHrrs  rtest_field_metadata_defaultz$TestCase.test_field_metadata_defaults
		
		
1../VAYq\223Q7

#
#I$FH	.,-F1IaL!!&)	.	.	.sB''B0c"|jt5tGdd}ddditGfdd}|jt	|dj
|j
tt	|dj
ddd<|j
tt	|dj
d|j
t	|dj
dd|jtd5dt	|dj
d	<dddd
ddd
tGfdd}|j
tt	|dj
d|j
t	|dj
d	d
|j
t	|dj
dd|j
t	|dj
dddd<|j
tt	|dj
d|j
t	|dj
dd|jt5t	|dj
dddd|jtd5dt	|dj
d	<dddy#1swYxYw#1swYxYw#1swY^xYw#1swYyxYw)Nc*eZdZUedZeed<y)/TestCase.test_field_metadata_mapping.<locals>.CrrJr3NrrrrGr3r:r;rrrr%rNs*3*rr%c.eZdZUeWZeed<yrNrOr3NrPrsrr%z/TestCase.test_field_metadata_mapping.<locals>.CA&As&rrrCrrHrrIr42three)rIr[rc.eZdZUeWZeed<yrRrPrSsrr%z/TestCase.test_field_metadata_mapping.<locals>.CrTrr[rbaz)
rrr(rr+rJr)r*rHKeyError)r-r%rs  @rtest_field_metadata_mappingz$TestCase.test_field_metadata_mappings

y
)	+

+
+
+	+
		'	'
	'1../VAYq\223Q7%VAYq\223Q71..u5q9

#
#I$FH	.,-F1IaL!!&)	.
1		'	'
	'VAYq\223Q71..v6;1..u5t<1..q17;%VAYq\223Q71..u5q9


x
(	)1IaL!!%(	)
#
#I$FH	.,-F1IaL!!&)	.	.I	+	+ 	.	."	)	)	.	.s/KK,K9:LK),K69LLcGddtGfdd}|jtt|djd|jt|djdd|jt5t|djd	ddd|jt|djd
dy#1swY5xYw)NceZdZdZdZdZy)DTestCase.test_field_metadata_custom_mapping.<locals>.SimpleNameSpacec:|jj|yr)rupdate)r-kws  rrzMTestCase.test_field_metadata_custom_mapping.<locals>.SimpleNameSpace.__init__s

$$R(rc&|dk(ryt||S)Nxyzzyplugh)r)r-items  r__getitem__zPTestCase.test_field_metadata_custom_mapping.<locals>.SimpleNameSpace.__getitem__s7?"tT**rc6|jjSr)r__len__rs rrgzLTestCase.test_field_metadata_custom_mapping.<locals>.SimpleNameSpace.__len__s}},,..rN)rrrrrergrrrSimpleNameSpacer]s
)
+

/rrhc<eZdZUeWdZeed<y)6TestCase.test_field_metadata_custom_mapping.<locals>.CrrrOr3NrP)rhsrr%rj	sOb$9:As:rr%rrCr%rrrbrc)r(r)r*r+rJrr9)r-r%rhs  @r"test_field_metadata_custom_mappingz+TestCase.test_field_metadata_custom_mappings
	/
	/
	;	;
	;	
VAYq\223Q71..s3R8


~
.	'1IaL!!#&	'	
1..w7A	'	'sC""C+ctdtGfddt}|d}|j|jd|j|j
dt|t}y)Nrc*eZdZUWed<dZeed<y)5TestCase.test_generic_dataclasses.<locals>.LabeledBoxcontent	<unknown>labelN)rrrr;rqrrsr
LabeledBoxrnsJ$E3$rrrr=rp)rr(rr)rorqrr:)r-rrboxAliasrs    @rtest_generic_dataclassesz!TestCase.test_generic_dataclassesslCL		%	%
	%nb)K0Z_%rctdtdtGfddtf}tGdd|tf}|t}|ddd	}|jt
|d
Gdd|tf}|t}|d
d}|j|jdy)NSrc(eZdZUWed<Wed<y)-TestCase.test_generic_extending.<locals>.Baser8rNr)rwrsrrry's
DDrrceZdZUeed<y)4TestCase.test_generic_extending.<locals>.DataDerived	new_fieldNrrrrDataDerivedr{,sNrr}rtest1test2)rr~rceZdZdZy)7TestCase.test_generic_extending.<locals>.NonDataDerivedc|jSrrrs r
new_methodzBTestCase.test_generic_extending.<locals>.NonDataDerived.new_method4rrN)rrrrrrrNonDataDerivedr3rrrr?)	rr(rr:rr)rr,r)r-rr}rtrrrwrs      @@rtest_generic_extendingzTestCase.test_generic_extending#sCLCL		71a4=	
	
	$sAv,	
	C !Wg&%:;	T#q&\	u%"cN-rcbtdtGfddt}tddfdtdfg|t
tfddi	}|j
|t
d
djd|j|t
d
ddjd|j|t
d
ddjd|}|j|t
d
djd
|j|j||ttfy)
NrceZdZUWed<y)-TestCase.test_generic_dynamic.<locals>.Parentr8Nrrsrrr=rrrrrrrr=)bases	namespacerCrMr)
rr(rrr
r:rrr)rr8__mro__r)r-rrrtrs    @rtest_generic_dynamiczTestCase.test_generic_dynamic:sCL		WQZ	
	w#qC!d3K(L&,Sk71:%>7TV-Y

jeCjA&(($/sAq!,..2sAq!,22B7asAq)++Q/(HIrc
tGddatGddatGddatd}d|_tdtddtd|tdtdgd	g}|D]E}ttjdzD]"}|j||
5t
jt
j||}|j|j|j|j|j|j|j||d|_t
jt
j||}|j|j|j|j|j|jddd%Hy#1swY4xYw)Nc&eZdZUeed<dZeed<y)Pr8rrNrrrrrrMrrrc6eZdZUeed<eddZeed<y)Qr8rFr:rNrrrr:r;rGrrrrrrQsF151As1rrc:eZdZUeed<eeZeeed<y)Rr8rrNrrrrrrUrrrrCrM)rMrr)sampleprotor=)r(rrrrrangepickleHIGHEST_PROTOCOLr2loadsdumpsr)r8r)r-qsamplesrr
new_sampleanother_new_samples       rtest_dataclasses_pickleablez$TestCase.test_dataclasses_pickleableKs			
	
	2	2
	2
	7	7
	7
aDQ41a!A$1Q41iA
	EFv66:;	
E\\u\=E!'fll65.I!JJ$$VXXz||<$$VXXz||<$$VZ8#%JL)/fll:u6U)V&$$Z\\3E3G3GH$$VXX/A/C/CDEE	
E
	EEEs
>DGGcJtdddGdd}|j|jjddD]+}|jt	||j
d|-|j
td5|dddy#1swYyxYw)	NT)rrrhc"eZdZUeed<eed<y).TestCase.test_dataclasses_qualnames.<locals>.Ar8rNr9rrrrrirJrrr)
rrzr{r|r}rr__repr__r7__delattr__z/TestCase.test_dataclasses_qualnames.<locals>.A.zA\.__init__\(\) missing)r(r)rrrrrHr)r-rfunctions   rtest_dataclasses_qualnamesz#TestCase.test_dataclasses_qualnameshs	4	=		
>		
,,j9
	~H
WQ1>>Bqrzq{@|}	~
#
#I/I
J	
C			sBB"N)mrrrr/r4r?rKrUr[rernryrrrrrrrrrrrr8rFr_rmrrrrrrrrrrrrrrrr$r?rHrOrQr]rurrrrrrrrrrrrrrrrrr!r.r:r?rLrXrarerirtrxr}rrrrrrrrrrrrrrrr r$r(r-r/r8r<rDrKrZrkrurrrrrrrr!r!s3,,"?71G7
R"*X3jq,(,**(!"5"5$*8,B46l#2&CP
&"P 	0$4?4@&-B")H# +2Z"*&
2;>DL***,<&-^> 
 9$v$8*	.
"$6*	.
""
;747&r00"&&-:>,6&4)7
D
-	
"H"_:
R,4B=+$
-
/	
"8 Z4
G#"
J
(><-.!:8 .).VB2
&..J"E:rr!ceZdZdZdZdZy)TestFieldNoAnnotationc|jtd5tGdd}dddy#1swYyxYw)N)'f' is a field but has no type annotationceZdZeZy)>TestFieldNoAnnotation.test_field_without_annotation.<locals>.CNrrrrGrrrrr%r	Grr%r>rs  rtest_field_without_annotationz3TestFieldNoAnnotation.test_field_without_annotationsB

#
#I$OQ	



			r@ctGdd}|jtd5tGdd|}dddy#1swYyxYw)NceZdZUeed<y)UTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_base.<locals>.BrNr9rrrrrr<rrrceZdZeZy)UTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_base.<locals>.CNrrrrr%rrrr%r(rHrrs   r4test_field_without_annotation_but_annotation_in_basezJTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_bases_			
	
#
#I$OQ	
A

			sAAcGdd}|jtd5tGdd|}dddy#1swYyxYw)NceZdZUeed<y)cTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_base_not_dataclass.<locals>.BrNr9rrrrrr4rrrceZdZeZy)cTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_base_not_dataclass.<locals>.CNrrrrr%rrrr%r>rs   rBtest_field_without_annotation_but_annotation_in_base_not_dataclasszXTestFieldNoAnnotation.test_field_without_annotation_but_annotation_in_base_not_dataclasssR		
#
#I$OQ	
A

			s	?AN)rrrrrrrrrrrsrrcZeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
Zy)
TestDocStringch|j|jdd|jddy)N )r)rW)r-r%rs   rassertDocStrEqualzTestDocString.assertDocStrEquals*	
3+QYYsB-?@rcbtGdd}|j|jdy)NceZdZUdZeed<y)?TestDocString.test_existing_docstring_not_overridden.<locals>.CLorem ipsumr8N)rrr__doc__r:r;rrrr%rs
Frr%r)r(r)rrs  r&test_existing_docstring_not_overriddenz4TestDocString.test_existing_docstring_not_overriddens/			
		
M2rcbtGdd}|j|jdy)NceZdZy)1TestDocString.test_docstring_no_fields.<locals>.CNrrrrr%rr&rr%zC()r(rrrs  rtest_docstring_no_fieldsz&TestDocString.test_docstring_no_fieldss/			
		
qyy%0rcbtGdd}|j|jdy)NceZdZUeed<y)1TestDocString.test_docstring_one_field.<locals>.Cr8Nr9rrrr%rr<rr%zC(x:int)rrs  rtest_docstring_one_fieldz&TestDocString.test_docstring_one_fields/			
		
qyy*5rcbtGdd}|j|jdy)Nc"eZdZUeed<eed<y)2TestDocString.test_docstring_two_fields.<locals>.Cr8rNr9rrrr%rrJrr%zC(x:int, y:int)rrs  rtest_docstring_two_fieldsz'TestDocString.test_docstring_two_fieldss0			
		
qyy*;<rcbtGdd}|j|jdy)Nc,eZdZUeed<eed<eed<y)4TestDocString.test_docstring_three_fields.<locals>.Cr8rrNrrrr:r;rrrrr%rrrr%zC(x:int, y:int, z:str)rrs  rtest_docstring_three_fieldsz)TestDocString.test_docstring_three_fieldss0			
	
	
qyy*BCrcbtGdd}|j|jdy)NceZdZUdZeed<y)>TestDocString.test_docstring_one_field_with_default.<locals>.Crr8Nrrrrr%rr*rr%z
C(x:int=3)rrs  r%test_docstring_one_field_with_defaultz3TestDocString.test_docstring_one_field_with_defaults/			
		
qyy,7rcbtGdd}|j|jdy)Nc2eZdZUdZeeedfed<y)CTestDocString.test_docstring_one_field_with_default_none.<locals>.CNr8)rrrr8rr:rXr;rrrr%rs(,AuS$t*_%,rr%zC(x:Optional[int]=None)rrs  r*test_docstring_one_field_with_default_nonez8TestDocString.test_docstring_one_field_with_default_nones0		-	-
	-	
qyy*CDrcbtGdd}|j|jdy)NceZdZUeeed<y)2TestDocString.test_docstring_list_field.<locals>.Cr8N)rrrrr:r;rrrr%rsCyLrr%zC(x:List[int])rrs  rtest_docstring_list_fieldz'TestDocString.test_docstring_list_fields0			
		
qyy*:;rcbtGdd}|j|jdy)Nc0eZdZUeeZeeed<y)GTestDocString.test_docstring_list_field_with_default_factory.<locals>.Crr8N)	rrrrGrr8rr:r;rrrr%rs 6AtCy6rr%zC(x:List[int]=<factory>)rrs  r.test_docstring_list_field_with_default_factoryz<TestDocString.test_docstring_list_field_with_default_factorys0		7	7
	7	
qyy*DErcbtGdd}|j|jdy)NceZdZUeed<y)3TestDocString.test_docstring_deque_field.<locals>.Cr8N)rrrrr;rrrr%rsHrr%zC(x:collections.deque)rrs  rtest_docstring_deque_fieldz(TestDocString.test_docstring_deque_fields0			
		
qyy*BCrcbtGdd}|j|jdy)Nc*eZdZUeeZeed<y)HTestDocString.test_docstring_deque_field_with_default_factory.<locals>.Crr8N)rrrrGrr8r;rrrr%rsU3Au3rr%z C(x:collections.deque=<factory>)rrs  r/test_docstring_deque_field_with_default_factoryz=TestDocString.test_docstring_deque_field_with_default_factorys0		4	4
	4	
qyy*LMrcGddt}Gdd|}tGdd|}|j|jdy)NceZdZeZy)<TestDocString.test_docstring_with_no_signature.<locals>.MetaN)rrrr__call__rrrMetarrrrceZdZy)<TestDocString.test_docstring_with_no_signature.<locals>.BaseNrrrrrr	r_rr)	metaclassceZdZy)9TestDocString.test_docstring_with_no_signature.<locals>.CNrrrrr%r	r&rr%)rXr(rr)r-rrr%s    r test_docstring_with_no_signaturez.TestDocString.test_docstring_with_no_signaturesK	4		T	
		
		
qyy#.rN)rrrrrrrrrrrrrrrrrrrrrsIA316=D8E<FDN/rrc$eZdZdZdZdZdZy)TestInitcpGdd}tGdd|}|d}|j|jd|jdt	|tdGd	d|}|}|j|jd|j|j
d
y)NceZdZdZy)&TestInit.test_base_has_init.<locals>.Bcd|_yNrrrs rrz/TestInit.test_base_has_init.<locals>.B.__init__
	s	rNrrrrrr	s
rrceZdZUdZeed<y)&TestInit.test_base_has_init.<locals>.Crr8Nrrrrr%r		r*rr%rrFrceZdZUdZeed<y)r	rr8Nrrrrr%z&TestInit.test_base_has_init.<locals>.C	AsKrr)r(r)r8rrr)r-rr%rs    rtest_base_has_initzTestInit.test_base_has_init	s		
		
	
bEb!d1g&
			
	
Cb!c"rctdGdd}|j|jdtdGdd}|j|jdy)NFrceZdZUdZeed<y) TestInit.test_no_init.<locals>.Crr3N)rrrr3r:r;rrrr%r%	r*rr%rc"eZdZUdZeed<dZy)rrMr3cd|_yNrr3rs rrz)TestInit.test_no_init.<locals>.C.__init__-	r}rN)rrrr3r:r;rrrrr%z TestInit.test_no_init.<locals>.C*	sAsJ
rrr(r)r3rs  rtest_no_initzTestInit.test_no_init$	sh				
	"				
		
"rcZtGdd}|j|djdtdGdd}|j|djd	td
Gdd}|j|djd
y)NceZdZUeed<dZy))TestInit.test_overwriting_init.<locals>.Cr8cd|z|_yrnr~r-r8s  rrz2TestInit.test_overwriting_init.<locals>.C.__init__8	
QrNrrrr:r;rrrrr%r5	F
rr%rrTrceZdZUeed<dZy)rr8cd|z|_yrnr~rs  rrz2TestInit.test_overwriting_init.<locals>.C.__init__?	rrNrrrrr%z)TestInit.test_overwriting_init.<locals>.C<	rrrFceZdZUeed<dZy)rr8cd|z|_yrnr~rs  rrz2TestInit.test_overwriting_init.<locals>.C.__init__F	rrNrrrrr%z)TestInit.test_overwriting_init.<locals>.CC	rrrrr>rs  rtest_overwriting_initzTestInit.test_overwriting_init1	s
		
		
1#				
		
1#				
		
1$rcGddt}tGdd|}|j|djdtGdd|}|j|djdy)	NceZdZUeed<y).TestInit.test_inherit_from_protocol.<locals>.Pr%Nr9rrrrr&N	r4rrceZdZUeed<y).TestInit.test_inherit_from_protocol.<locals>.Cr%Nr9rrrr%r(Q	r<rr%rceZdZdZy).TestInit.test_inherit_from_protocol.<locals>.Dc|dz|_yrnr)r-r%s  rrz7TestInit.test_inherit_from_protocol.<locals>.D.__init__Y	rrNrrrrrbr*W	s
rrbr)rr(r)r%)r-rr%rbs    rtest_inherit_from_protocolz#TestInit.test_inherit_from_protocolJ	sv		
		
		
1#			
		
1$rN)rrrrrr#r,rrrrr
	s#2#%2%rrceZdZdZdZdZy)TestReprctGdd}tGdd|}|d}|jt|dtGdd|}|jt|d	tGd
d}|jt|jdd|jt|j	d
y)NceZdZUeed<y)TestRepr.test_repr.<locals>.Br8Nr9rrrrr1a	r<rrceZdZUdZeed<y)TestRepr.test_repr.<locals>.CrrNr(rrrr%r3e	rrr%rz(TestRepr.test_repr.<locals>.C(x=4, y=10)ceZdZUdZeed<y)TestRepr.test_repr.<locals>.Drr8Nrrrrrbr5l	rrrbz)TestRepr.test_repr.<locals>.D(x=20, y=10)cHeZdZeGddZeGddZy)r3ceZdZUeed<y)TestRepr.test_repr.<locals>.C.Dr3Nr9rrrrbr8s	rrrbceZdZy)TestRepr.test_repr.<locals>.C.ENrrrrrr:v	srrN)rrrr(rbrrrrr%zTestRepr.test_repr.<locals>.Cq	s0







rrz$TestRepr.test_repr.<locals>.C.D(i=0)z!TestRepr.test_repr.<locals>.C.E())r(r)rNrbr)r-rr%r.rbs     r	test_reprzTestRepr.test_repr`	s			
	
		
	
aDa"LM			
	ac$OP			
		
acc!f'MNacce&IJrctdGdd}|jtdt|dtdGdd}|j	t|ddy)	NFrceZdZUeed<y) TestRepr.test_no_repr.<locals>.Cr8Nr9rrrr%r>~	r<rr%z+.TestRepr.test_no_repr.<locals>.C object atrceZdZUeed<dZy)r>r8cy)NC-classrrs rrz)TestRepr.test_no_repr.<locals>.C.__repr__	s rNrrrr:r;rrrrr%z TestRepr.test_no_repr.<locals>.C	sF
!rrA)r(rYrrNr)rs  rtest_no_reprzTestRepr.test_no_repr|	sw				
	


"MN1Q4j	"
		!	!
	!	
adY/rcTtGdd}|jt|ddtdGdd}|jt|ddtdGd	d}|jt|ddy)
NceZdZUeed<dZy))TestRepr.test_overwriting_repr.<locals>.Cr8cyNr8rrs rrz2TestRepr.test_overwriting_repr.<locals>.C.__repr__	rrNrBrrrr%rF	rrr%rr8TrceZdZUeed<dZy)rFr8cyrHrrs rrz2TestRepr.test_overwriting_repr.<locals>.C.__repr__	rrNrBrrrr%z)TestRepr.test_overwriting_repr.<locals>.C	rrFceZdZUeed<dZy)rFr8cyrHrrs rrz2TestRepr.test_overwriting_repr.<locals>.C.__repr__	rrNrBrrrr%z)TestRepr.test_overwriting_repr.<locals>.C	rrrrs  rtest_overwriting_reprzTestRepr.test_overwriting_repr	s
		
		
adS)				
		
adS)				
		
adS)rN)rrrr;rCrMrrrr.r._	sK80 *rr.ceZdZdZdZy)TestEqctdGdd}|j|d|d|d}|j||tdGdd}|j|ddy)	NFrsceZdZUeed<y)TestEq.test_no_eq.<locals>.Cr8Nr9rrrr%rS	r<rr%rrceZdZUeed<dZy)rSr8c|dk(Srirrs  rrz#TestEq.test_no_eq.<locals>.C.__eq__	s{"rNrrrrr%zTestEq.test_no_eq.<locals>.C	sF
#rr)r(rr)rs   r
test_no_eqzTestEq.test_no_eq	s	e			
	AaD!A$'
aDA
e		#	#
	#	
1r"rctGdd}|j|dd|j|ddtdGdd}|j|dd|j|ddtd	Gd
d}|j|dd|j|ddy)NceZdZUeed<dZy)%TestEq.test_overwriting_eq.<locals>.Cr8c|dk(Srrrs  rrz,TestEq.test_overwriting_eq.<locals>.C.__eq__	z!rNrrrrr%rY	F
"rr%rCrTrQceZdZUeed<dZy)rYr8c|dk(SrWrrs  rrz,TestEq.test_overwriting_eq.<locals>.C.__eq__	r[rNrrrrr%z%TestEq.test_overwriting_eq.<locals>.C	r\rrFceZdZUeed<dZy)rYr8c|dk(SrZrrs  rrz,TestEq.test_overwriting_eq.<locals>.C.__eq__	r[rNrrrrr%z%TestEq.test_overwriting_eq.<locals>.C	r\rrrrs  rtest_overwriting_eqzTestEq.test_overwriting_eq	s
	"	"
	"	
1q!AaD!$	d		"	"
	"	
1q!AaD!$	e		"	"
	"	
1q!AaD!$rN)rrrrVrarrrrOrO	s#"%rrOceZdZdZdZdZy)TestOrderingcttGdd}|j|dd|j|dd|j	|dd|j|ddy)NceZdZUeed<dZy)5TestOrdering.test_functools_total_ordering.<locals>.Cr8c |j|k\Srr~rs  rrzz<TestOrdering.test_functools_total_ordering.<locals>.C.__lt__	svv&rNrrrr:r;rzrrrr%rf	sF
'rr%rrC)rr(rDr4rEr5rs  rtest_functools_total_orderingz*TestOrdering.test_functools_total_ordering	sq			'	'

	'	
!b!QqT2&1Q4#!a(rctdGdd}|jd|j|jd|j|jd|j|jd|jtdGd	d}|jd|j|jd|j|jd|jy)
NFrceZdZUeed<y)%TestOrdering.test_no_order.<locals>.Cr8Nr9rrrr%rm	r<rr%r{rzr}r|ceZdZUeed<dZy)rmr8cyrrrs  rrzz,TestOrdering.test_no_order.<locals>.C.__lt__	rrNrhrrrr%z%TestOrdering.test_no_order.<locals>.C	rrrrs  r
test_no_orderzTestOrdering.test_no_order	s				
 		
1::.1::.1::.1::.
			
 	
	
1::.1::.1::.rc$|jtd5tdGdd}ddd|jtd5tdGdd}ddd|jtd5tdGd	d}ddd|jtd
5tdGdd}dddy#1swYxYw#1swYxYw#1swYZxYw#1swYyxYw)NzACannot overwrite attribute __lt__.*using functools.total_orderingTrceZdZUeed<dZy).TestOrdering.test_overwriting_order.<locals>.Cr8cyrrrs rrzz5TestOrdering.test_overwriting_order.<locals>.C.__lt__
rrNrhrrrr%rs
rr%zACannot overwrite attribute __le__.*using functools.total_orderingceZdZUeed<dZy)rsr8cyrrrs rr{z5TestOrdering.test_overwriting_order.<locals>.C.__le__
rrN)rrrr:r;r{rrrr%z.TestOrdering.test_overwriting_order.<locals>.C	
rurzACannot overwrite attribute __gt__.*using functools.total_orderingceZdZUeed<dZy)rsr8cyrrrs rr|z5TestOrdering.test_overwriting_order.<locals>.C.__gt__
rrN)rrrr:r;r|rrrr%z.TestOrdering.test_overwriting_order.<locals>.C
rurzACannot overwrite attribute __ge__.*using functools.total_orderingceZdZUeed<dZy)rsr8cyrrrs rr}z5TestOrdering.test_overwriting_order.<locals>.C.__ge__
rrN)rrrr:r;r}rrrr%z.TestOrdering.test_overwriting_order.<locals>.C
rurr>rs  rtest_overwriting_orderz#TestOrdering.test_overwriting_order	s5

#
#I%GH	T
"

#
		
#
#I%GH	T
"

#
		
#
#I%GH	T
"

#
		
#
#I%GH	T
"

#
			7								s/C"C.C:?D"C+.C7:DDN)rrrrjrpr|rrrrcrc	s) /,#rrcc0eZdZdZdZdZdZdZdZy)TestHashctdGdd}|jt|ddtdy)NTrc"eZdZUeed<eed<y)$TestHash.test_unsafe_hash.<locals>.Cr8rNrrrrr%r#
rJrr%rCr)rCrr(r)rrs  rtest_unsafe_hashzTestHash.test_unsafe_hash"
s@	t	$		
%		
a5k*D,<=rc	d}fd}tgddD]c\}\}}}}}|||||d||||||d|||||||||d|||||||||d|ey)Nc|y|ryy)N)rrr)r4s rnon_boolz*TestHash.test_hash_rules.<locals>.non_bool*
s}rcj||||5|dk7r9|rt|||Gdd}nt|||Gdd}|dk(r;jdjj	|jdn|d	k(r|sjdjn|d
k(r;jdjj
|jdnN|dk(r?|sJjtd5t|||Gdd}dddn
Jd
|dddy#1swYxYw#1swYyxYw)N)caserrsrhrp)rrsrhceZdZdZy)1TestHash.test_hash_rules.<locals>.test.<locals>.Ccyrrrs rrz:TestHash.test_hash_rules.<locals>.test.<locals>.C.__hash__9
'(rNrrrrr%r7
)rr%ceZdZy)rNrrrrr%z1TestHash.test_hash_rules.<locals>.test.<locals>.C<
rwrr7rrnonerceZdZdZy)rcyrrrs rrz:TestHash.test_hash_rules.<locals>.test.<locals>.C.__hash__W
rrNrrrrr%z1TestHash.test_hash_rules.<locals>.test.<locals>.CU
rrr~)	r2r(rYrassertIsNotNonerrrHr)rrrsrh	with_hashrr%r-s       rrIz&TestHash.test_hash_rules.<locals>.test2
sw4[R%+-(
?[( "{r&Q))R)#{r&Q!!R!T>MM*ajj9((J)?@r\$((QZZ@v%MM*ajj9%%ajj&<={*%%//	;`a)"{r&Q))R)))?OF:">>Q(
?(
?B))C(
?(
?s$DEE5EE	EE&))FFFrr)FFTrr)FTFrr)FTTr7r)TFFr7rp)TFTr7rp)TTFr7rp)TTTr7rprCFT)r3)	r-rrIrrrsrhres_no_defined_hashres_defined_hashs	`        rtest_hash_ruleszTestHash.test_hash_rules)
s	)	?b[d	e	[	gVDV;0CEU
{B7JK{B7GH

x,hrlHV<LeUhix,hrlHV<LdUef#	grc|tGdd}|j|d|d|j|d|dtdGdd}|j|d|d|jt|dt|dtdd	Gd
d}|j|d|d|j|d|d|jt|dt|dy)NceZdZUeed<dZy) TestHash.test_eq_only.<locals>.Cr3c4|j|jk(Srrrs  rrz'TestHash.test_eq_only.<locals>.C.__eq__
vv((rNrrrrr%r}
F
)rr%rCrTrceZdZUeed<dZy)rr3c4|j|jk(Srrrs  rrz'TestHash.test_eq_only.<locals>.C.__eq__
rrNrrrrr%z TestHash.test_eq_only.<locals>.C
rrr)rrsceZdZUeed<dZy)rr3cV|jdk(xr|j|jk(Srrrs  rrz'TestHash.test_eq_only.<locals>.C.__eq__
s"vv{8tvv'88rNrrrrr%z TestHash.test_eq_only.<locals>.C
sF
9rr)r(r)rrrs  rtest_eq_onlyzTestHash.test_eq_onlyw
s
	)	)
	)	
1qt$AaD!A$'
t	$	)	)
%	)	
1qv&adT!C&\2
t	-	9	9
.	9	
1qt$AaD!A$'adT!C&\2rctdGdd}|jt|tdtdGdd}|jt|tdy)NTrceZdZy%TestHash.test_0_field_hash.<locals>.CNrrrrr%r
r&rr%rrceZdZyrrrrrr%z%TestHash.test_0_field_hash.<locals>.C
r&rrrs  rtest_0_field_hashzTestHash.test_0_field_hash
sn	$			
 	acDH-	t	$		
%	acDH-rctdGdd}|jt|dtd|jt|dtdtd	Gd
d}|jt|dtd|jt|dtdy)NTrceZdZUeed<y%TestHash.test_1_field_hash.<locals>.Cr8Nr9rrrr%r
r<rr%r)rr=r=rceZdZUeed<yrr9rrrr%z%TestHash.test_1_field_hash.<locals>.C
r<rrrs  rtest_1_field_hashzTestHash.test_1_field_hash
s	$			
 	adT$Z0aed5k2	t	$		
%	adT$Z0aed5k2rcGdd}ddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dfddtdfdd|dffD]]\}}}}|j||||	5||tGd
d|}nU|t|Gd
d|}n8|t|Gdd|}nt||Gdd|}|dk(r3|d}|jtd5t|dddn|dk(r"|j
t|ddnj|dk(r+|j|jtjn:|dk(r+|j
t|dtdn
Jd|ddd`y#1swYxYw#1swYxxYw)NceZdZdZy)(TestHash.test_hash_no_args.<locals>.Basecyrrrs rrz1TestHash.test_hash_no_args.<locals>.Base.__hash__
rrNrrrrrr
s
rrrFrbaseTr)rhrsrrlceZdZUeed<y%TestHash.test_hash_no_args.<locals>.Cr3Nr9rrrr%r
rr%rQceZdZUeed<yrr9rrrr%z%TestHash.test_hash_no_args.<locals>.C
rrrceZdZUeed<yrr9rrrr%z%TestHash.test_hash_no_args.<locals>.C
rr)rhrsceZdZUeed<yrr9rrrr%z%TestHash.test_hash_no_args.<locals>.C
rrrunhashable typerr=rzunknown value for expected=)	rr2r(rHrrr)rr)r-rrhrsrrlr%rs        rtest_hash_no_argszTestHash.test_hash_no_args
s		D6<0
D4<0
E68,
E46*
D6<0
D4<0
D6<0
D4<0
E68,
E46*
D6<0
D4<0
D67+
D47+
E68,
E46*
D67+
D47+%6<	M+FB48*VQ'
M>bjD^"%D&Zf-D.f4D5|+"A//	;LM Q  '$$T!B%[#6)
MM!**foo>($$T!B%[$u+>M$?|"LLO'
M'
M+<	MV  -'
M'
Ms&)BG9;G-BG9-G62G99H	N)	rrrrrrrrrrrrr~r~!
s&>Kg\!3F	.3HMrr~cTeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZy
)
TestFrozenctdGdd}|d}|j|jd|jt5d|_ddd|j|jdy#1swY&xYw)NTrceZdZUeed<y)!TestFrozen.test_frozen.<locals>.Cr3Nr9rrrr%r
r<rr%rr)r(r)r3rrtrs   rtest_frozenzTestFrozen.test_frozen
s|	$			
 	
bEb!


2
3	AC	b!		sBB	cjtdGdd}|}|jt|d|jt5d|_ddd|jt|d|jt5|`dddy#1swYExYw#1swYyxYw)NTrceZdZy)'TestFrozen.test_frozen_empty.<locals>.CNrrrrr%r
r&rr%r3r)r(rrwrrtr3rs   rtest_frozen_emptyzTestFrozen.test_frozen_empty	s	$			
 	
CC)


2
3	AC	C)


2
3							sBB)B&)B2ctdGdd}tdGdd|}|dd}|jt5d	|_ddd|jt5d
|_ddd|j|jd|j|jdy#1swYgxYw#1swYNxYw)NTrceZdZUeed<y)"TestFrozen.test_inherit.<locals>.Cr3Nr9rrrr%rr<rr%ceZdZUeed<y)"TestFrozen.test_inherit.<locals>.Dr*Nr9rrrrbrr<rrbrrrr)r(rrtr3r*r)r-r%rbrs    rtest_inheritzTestFrozen.test_inherits	$			
 	
$			
 	
aH


2
3	AC	


2
3	AC	a b!				sC7CC	CctdGdd}|jtd5tGdd|}dddy#1swYyxYw)NTrceZdZy)>TestFrozen.test_inherit_nonfrozen_from_empty_frozen.<locals>.CNrrrrr%r(r&rr%5cannot inherit non-frozen dataclass from a frozen oneceZdZUeed<y)>TestFrozen.test_inherit_nonfrozen_from_empty_frozen.<locals>.Dr*Nr9rrrrbr.rrrbrrds   r(test_inherit_nonfrozen_from_empty_frozenz3TestFrozen.test_inherit_nonfrozen_from_empty_frozen'sb	$			
 	
#
#I$[]	

A

			sAActGdd}tGdd|}|d}|j|jd|j||y)NceZdZy)7TestFrozen.test_inherit_nonfrozen_from_empty.<locals>.CNrrrrr%r3r&rr%ceZdZUeed<y)7TestFrozen.test_inherit_nonfrozen_from_empty.<locals>.Dr*Nr9rrrrbr7r<rrbr)r(r)r*rrs    r!test_inherit_nonfrozen_from_emptyz,TestFrozen.test_inherit_nonfrozen_from_empty2sc			
	
		
	
aDa a#rc	0dD]y}|j|5tdGdd}|rGdd|}n|}|jtd	5tGd
d|}dddddd{y#1swYxYw#1swYxYw)NTFintermediate_classTrceZdZUeed<y)8TestFrozen.test_inherit_nonfrozen_from_frozen.<locals>.Cr3Nr9rrrr%rDFrr%ceZdZy)8TestFrozen.test_inherit_nonfrozen_from_frozen.<locals>.INrrrrIrIrrrrceZdZy)8TestFrozen.test_inherit_nonfrozen_from_frozen.<locals>.DNrrrrrbrOryrrbr2r(rHrr-rr%rrbs     r"test_inherit_nonfrozen_from_frozenz-TestFrozen.test_inherit_nonfrozen_from_frozenAs"/	1CD
$'(&$A$A++I,ceA

	

s$ABB-BB	BB	c	0dD]y}|j|5tGdd}|rGdd|}n|}|jtd5td	Gd
d|}dddddd{y#1swYxYw#1swYxYw)NrrceZdZUeed<y)8TestFrozen.test_inherit_frozen_from_nonfrozen.<locals>.Cr3Nr9rrrr%rVrrr%ceZdZy)8TestFrozen.test_inherit_frozen_from_nonfrozen.<locals>.INrrrrrr[rrrz5cannot inherit frozen dataclass from a non-frozen oneTrceZdZy)8TestFrozen.test_inherit_frozen_from_nonfrozen.<locals>.DNrrrrrbraryrrbrrs     r"test_inherit_frozen_from_nonfrozenz-TestFrozen.test_inherit_frozen_from_nonfrozenSs"/	1CD
&$A$A++I,ced+A,

	

s#:BB-BB	BB	c:dD]~}|j|5Gdd}|rGdd|}n|}tdGd	d
|}dddd}|jt5d|_dddy#1swY9xYw#1swYxYw)
NrrceZdZy)4TestFrozen.test_inherit_from_normal_class.<locals>.CNrrrrr%rhrlrr%ceZdZy)4TestFrozen.test_inherit_from_normal_class.<locals>.INrrrrrrlrrrTrceZdZUeed<y)4TestFrozen.test_inherit_from_normal_class.<locals>.Dr3Nr9rrrrbrprrrbrr)r2r(rrtr3)r-rr%rrbrs      rtest_inherit_from_normal_classz)TestFrozen.test_inherit_from_normal_classes"/	1CD
&$A$A$'(
"A""#67


	



s5B2BB	B	c<tdGdd}Gdd|}|d}|j|jd|j|jdd|_|jt5d	|_ddd|jt5d	|_ddd|j|jd|j|jd|j|jd|jt5|`ddd|j|jd|jt5|`ddd|j|jd|`|jt|d
|jt5}|`ddd|jjty#1swYYxYw#1swYAxYw#1swYxYw#1swYxYw#1swY\xYw)NTrc&eZdZUeed<dZeed<y)4TestFrozen.test_non_frozen_normal_derived.<locals>.Dr8rrNrrrrrbr{sFAsKrrbceZdZy)4TestFrozen.test_non_frozen_normal_derived.<locals>.SNrrrrrwrr_rrwrrrcached)r(r)r8rrrrtrrwr9assertNotIsInstancerpr-rbrwrcms     rtest_non_frozen_normal_derivedz)TestFrozen.test_non_frozen_normal_derivedxs
$			
 			
aDa b!

2
3	AC	


2
3	AC	a b!4(


2
3		a 


2
3		b!
HH-.


~
.	"	  /BC%								
		s<G &G-G:H4H G*-G7:HHHctdGdd}Gdd|}|}|jt|dd|_|j	|jd|`|jt|d|jt5}|`ddd|jjty#1swY*xYw)	NTrceZdZy)FTestFrozen.test_non_frozen_normal_derived_from_empty_frozen.<locals>.DNrrrrrbrr&rrbceZdZy)FTestFrozen.test_non_frozen_normal_derived_from_empty_frozen.<locals>.SNrrrrrwrr_rrwr8r)
r(rrwr8r)rr9rrprtrs     r0test_non_frozen_normal_derived_from_empty_frozenz;TestFrozen.test_non_frozen_normal_derived_from_empty_frozens	$			
 			
CC)a 
CC)


~
.	"	  /BC		sCCc|jtd5tdGdd}ddd|jtd5tdGdd}dddtdGd	d}|j|d
jdy#1swY}xYw#1swYQxYw)Nz&Cannot overwrite attribute __setattr__TrceZdZUeed<dZy)-TestFrozen.test_overwriting_frozen.<locals>.Cr8cyrrrs rr7z9TestFrozen.test_overwriting_frozen.<locals>.C.__setattr__rrNrrrr:r;r7rrrr%rrurr%z&Cannot overwrite attribute __delattr__ceZdZUeed<dZy)rr8cyrrrs rrz9TestFrozen.test_overwriting_frozen.<locals>.C.__delattr__rrN)rrrr:r;rrrrr%z-TestFrozen.test_overwriting_frozen.<locals>.CrurFceZdZUeed<dZy)rr8c(|dz|jd<y)NrMr8)r)r-rPr4s   rr7z9TestFrozen.test_overwriting_frozen.<locals>.C.__setattr__s%*QY

c"rNrrrrr%z-TestFrozen.test_overwriting_frozen.<locals>.CsF
/rrr)rHrr(r)r8rs  rtest_overwriting_frozenz"TestFrozen.test_overwriting_frozens

#
#I$LN	
d
#

$
	
#
#I$LN	
d
#

$
	
%	 	/	/
!	/	
2"%+				sB-B9-B69CctdGdd}t|d|jtd5t|idddy#1swYyxYw)NTrceZdZUeed<y)&TestFrozen.test_frozen_hash.<locals>.Cr8N)rrrrr;rrrr%rr<rr%rr)r(rrHrrs  rtest_frozen_hashzTestFrozen.test_frozen_hashs^	$			
 	
	
QqT

#
#I/@
A	2K			sAA%N)rrrrrrrrrrrrr	rrrrrrr
sA	"""	$$$&#DJD&&2rrcheZdZdZdZdZdZdZdZdZ	e
dd	Gd
dZe
dGd
dZdZ
e
dd	GddZe
dd	GddZe
dd	GddZdZdZdZdZdZdZdZdZdZdZd Zd!Zy")#	TestSlotsctGdd}|jtd5|ddd|d}|j|jdd|_|j|jd|jt
d5d|_dddy#1swYwxYw#1swYyxYw)NceZdZUdZeed<y) TestSlots.test_simple.<locals>.Cr~r8Nrrr	__slots__rr;rrrr%rIFrr%rrrz'C' object has no attribute 'y')r(rHrr)r8r9rrs   rtest_simplezTestSlots.test_simples			
	
#
#I$_a	
C	

bEb!a 
#
#N4U
V	AC						sB(B4(B14B=ctGdd}tGdd|}|dd}|j|j|jfdd|_y)	NceZdZUdZeed<y)0TestSlots.test_derived_added_field.<locals>.Baser~r8Nrrrrrr#rrrc"eZdZUeed<eed<y)3TestSlots.test_derived_added_field.<locals>.Derivedr8rNr9rrrDerivedr%rJrr&rCrMrr)r(r)r8rr)r-rr&rs    rtest_derived_added_fieldz"TestSlots.test_derived_added_fieldsf			
	
	d	
	
AqM!##qssV,rchtdGdd}|dd}|j|j|jfdd|_d	|_|j|j|jfd
|j	t
d5d|_dddy#1swYyxYw)
NTrgc"eZdZUeed<eed<y))TestSlots.test_generated_slots.<locals>.Cr8rNr9rrrr%r+rJrr%rCrMrrrrz'C' object has no attribute 'z'r)r(r)r8rrHr9rrs   rtest_generated_slotszTestSlots.test_generated_slotss				
	
aG!##qssV,!##qssV,

#
#N4U
V	AC			sB((B1c|jtd5tdGdd}dddy#1swYyxYw)Nz^C already specifies __slots__$Tr)ceZdZUdZeed<y)5TestSlots.test_add_slots_when_slots_exists.<locals>.Cr~r8N)rrrrr:r;rrrr%r/s"	rr%r>rs  r test_add_slots_when_slots_existsz*TestSlots.test_add_slots_when_slots_existssD

#
#I/P
Q	
T
"

#
				:AcGdd}Gdd|}Gdd|}Gdd|}td	
Gdd|}|j|jd
td	
Gdd|}|j|jdtGdd|}|jd|jy)NceZdZdhZy)2TestSlots.test_generated_slots_value.<locals>.Rootr8NrrrrrrrRootr4	Irr6ceZdZdddZy)3TestSlots.test_generated_slots_value.<locals>.Root2z...r)r+r*Nr5rrrRoot2r9s#"-Irr:ceZdZdgZy)3TestSlots.test_generated_slots_value.<locals>.Root3hNr5rrrRoot3r< r7rr>ceZdZdZy)3TestSlots.test_generated_slots_value.<locals>.Root4aaNr5rrrRoot4r@#sIrrBTr)c,eZdZUeed<eed<eed<y)2TestSlots.test_generated_slots_value.<locals>.Baserr*r=NrrrrrrD&rrrrc@eZdZUeed<eed<eed<eed<eed<y)5TestSlots.test_generated_slots_value.<locals>.DerivedrAr8rr+r=N)rrrr,r;rr:rrrr&rF.sIFFFFrr&rceZdZUeed<y)<TestSlots.test_generated_slots_value.<locals>.AnotherDerivedrNr9rrrAnotherDerivedrH8r<rrIr)r(r)rrr)r-r6r:r>rBrr&rIs        rtest_generated_slots_valuez$TestSlots.test_generated_slots_values			.D	.	E		E	
		5	
	
	
1			d	
		
**G4		T	
		
n&=&=>rcGdd}Gdd|}|jtd5tdGdd	|}dddy#1swYyxYw)
NceZdZedgZy)=TestSlots.test_cant_inherit_from_iterator_slots.<locals>.Rootr%N)rrrrrrrrr6rM@s
cUIrr6ceZdZdZy)>TestSlots.test_cant_inherit_from_iterator_slots.<locals>.Root2rNr5rrrr:rOCsIrr:z%^Slots of 'Root' cannot be determinedTr)ceZdZUeed<y):TestSlots.test_cant_inherit_from_iterator_slots.<locals>.Cr8Nr9rrrr%rRJrrr%r>)r-r6r:r%s    r%test_cant_inherit_from_iterator_slotsz/TestSlots.test_cant_inherit_from_iterator_slots>sc	$	$	 D	 
#
#3
	T
"
E
#
			sAAcGdd}t|d}|j|||jt|d|j	t|dy)NceZdZUeed<y)+TestSlots.test_returns_new_class.<locals>.Ar8Nr9rrrrrVOr4rrTr)r)r(rrrwrvr-rrs   rtest_returns_new_classz TestSlots.test_returns_new_classNsR		
at$AK01;/0rT)rhrgc"eZdZUeed<eed<y)TestSlots.FrozenSlotsClassrr[NrrrrFrozenSlotsClassrZY

rr[rc"eZdZUeed<eed<y)!TestSlots.FrozenWithoutSlotsClassrr[NrrrrFrozenWithoutSlotsClassr^^r\rr_c`|j|jjdttj
dzD]}|j
|5|jdd}t	jt	j||}|j|||j|||jdd}t	jt	j||}|j|||j||dddy#1swYxYw)N)rr[rCrr%protocol)r)r[rrrrr2rrrr_)r-rrUps    rtest_frozen_picklezTestSlots.test_frozen_picklecs	
..88.I622Q67
	)EE*	
)++C3LLcE!BC  a(  a(223:LLcE!BC  a(  a(	
)	
)
	)	
)	
)s
CD$$D-	cFeZdZUeed<eed<eddZeed<dZ	y)"TestSlots.FrozenSlotsGetStateClassrr[FrErgetstate_calledc`tj|dd|j|jgSNriTrr7rr[rs r__getstate__z/TestSlots.FrozenSlotsGetStateClass.__getstate__z(t%6=HHdhh''rN)
rrrrr;r:rGrirrmrrrFrozenSlotsGetStateClassrgss"

 %eU CC	(rrocFeZdZUeed<eed<eddZeed<dZ	y)"TestSlots.FrozenSlotsSetStateClassrr[Frhsetstate_calledctj|ddtj|d|dtj|d|dyNrrTrrr[rCrr7r-states  r__setstate__z/TestSlots.FrozenSlotsSetStateClass.__setstate__At%6=tUE!H5tUE!H5rN)
rrrrr;r:rGrrrrxrrrFrozenSlotsSetStateClassrq~s"

 %eU CC	6rrzcjeZdZUeed<eed<eddZeed<eddZ	eed<dZ
dZy	)
"TestSlots.FrozenSlotsAllStateClassrr[Frhrirrc`tj|dd|j|jgSrkrlrs rrmz/TestSlots.FrozenSlotsAllStateClass.__getstate__rnrctj|ddtj|d|dtj|d|dyrtrurvs  rrxz/TestSlots.FrozenSlotsAllStateClass.__setstate__ryrN)rrrrr;r:rGrirrrrmrxrrrFrozenSlotsAllStateClassr|s8

 %eU CC %eU CC	(	6rrchttjdzD]}|j|5|j	dd}tj
||}|j
|j|j|tj|dddttjdzD]}|j|5|jdd}tjtj
||}|j
|j|j||dddttjdzD]}|j|5|jdd}tj
||}|j
|jtj|}|j
|j|j||dddy#1swYxYw#1swYcxYw#1swYxYw)NrCrar%rb)
rrrr2rorrvrir)rrzrrr)r-rrUdumpedobj2s     r%test_frozen_slots_pickle_custom_statez/TestSlots.test_frozen_slots_pickle_custom_states622Q67	<EE*
<33C;cE: 3 34  fll6&:;
<
<	<622Q67	,EE*
,33C;||FLLu$EF 4 45  d+
,
,	,622Q67		,EE*
,33C;cE: 3 34||F+ 4 45  d+
,
,		,
<
<
,
,
,
,s&A*HA*H<BH(H	H%	(H1	ctdGdd}|d}|j|jd|j|jdy)NTr)c6eZdZUeed<eddZeed<y)4TestSlots.test_slots_with_default_no_init.<locals>.Ar%rFr:Nrrrrr;rGrrrrrrsF3U3As3rrr%rr(r)r%rr-rrUs   rtest_slots_with_default_no_initz)TestSlots.test_slots_with_default_no_initsQ			4	4
	4f$$rctdGdd}|d}|j|jd|j|jdy)NTr)c8eZdZUeed<eddZeed<y)<TestSlots.test_slots_with_default_factory_no_init.<locals>.Ar%cy)NrrrrrrzETestSlots.test_slots_with_default_factory_no_init.<locals>.A.<lambda>rrFrrNrrrrrrsF:EBAsBrrr%rrrs   r'test_slots_with_default_factory_no_initz1TestSlots.test_slots_with_default_factory_no_initsT			C	C
	Cf$$rchtdGdd}|jd|j|}|jtd5tj|ddd|jt5|jdddy#1swY4xYw#1swYyxYw)NTr)ceZdZy)*TestSlots.test_slots_no_weakref.<locals>.ANrrrrrrs
rr__weakref__zcannot create weak reference)
r(rrrHrweakrefrefrr9rr`s   rtest_slots_no_weakrefzTestSlots.test_slots_no_weakrefs				
		
4
C

#
#I$BD	KKN	

~
.	
MM						sB
B(B%(B1ctddGdd}|jd|j|d}tj|}|j|j|y)NTrgweakref_slotceZdZUeed<y)'TestSlots.test_slots_weakref.<locals>.Ar%Nr9rrrrrr<rrrrC)r(rYrrrrr)r-rr%a_refs    rtest_slots_weakrefzTestSlots.test_slots_weakrefs\	D	1		
2		


mQ[[1
aDA

ammU+rcGdd}tdGdd|}|jd|j|jd|j|d}t	j
|y)	NceZdZdZy)3TestSlots.test_slots_weakref_base_str.<locals>.BaserNr5rrrrrs%IrrTr)ceZdZUeed<y)0TestSlots.test_slots_weakref_base_str.<locals>.Ar%Nr9rrrrrr<rrrrCr(rYrrrrr-rrr%s    rtest_slots_weakref_base_strz%TestSlots.test_slots_weakref_base_strsh	&	&
			
		


mT^^44
aDArcGdd}tdGdd|}|jd|j|jd|j|d}t	j
|y)	NceZdZdZy)5TestSlots.test_slots_weakref_base_tuple.<locals>.BaserNr5rrrrr(IrrTr)ceZdZUeed<y)2TestSlots.test_slots_weakref_base_tuple.<locals>.Ar%Nr9rrrrrr<rrrrCrrs    rtest_slots_weakref_base_tuplez'TestSlots.test_slots_weakref_base_tuplesh	)	)
			
	
	


mT^^44
aDArc|jtd5tdGdd}dddy#1swYyxYw)N'weakref_slot is True but slots is FalseTrceZdZUeed<y)3TestSlots.test_weakref_slot_without_slot.<locals>.Ar%Nr9rrrrr
rrrr>r-rs  rtest_weakref_slot_without_slotz(TestSlots.test_weakref_slot_without_slot
sG

#
#I$MO	
D
)

*
			r1c"tddtfgdd}|jd|j|d}t	j
||j
td5tddtfgd	}dddy#1swYyxYw)
Nrr%TrrrCrrr)rr:rYrrrrHr)r-rr%rs    r test_weakref_slot_make_dataclassz*TestSlots.test_weakref_slot_make_dataclass
s3#s
TM

mQ[[1
aDA
#
#I$MO	Fsc3ZMEA	F	F	Fs&BBcPtddGdd}tddGdd|}|jd|j|jd|j|d}t	j
|}|j
|j|y)	NTrceZdZUeed<y)?TestSlots.test_weakref_slot_subclass_weakref_slot.<locals>.BaserGNr9rrrrr
rrrceZdZy)<TestSlots.test_weakref_slot_subclass_weakref_slot.<locals>.ANrrrrrr
rrrrCr(rYrrrrrrr-rrr%rs     r'test_weakref_slot_subclass_weakref_slotz1TestSlots.test_weakref_slot_subclass_weakref_slot
s	D	1		
2	
D	1		
2	
	


mT^^44
aDA

ammU+rcNtddGdd}tdGdd|}|jd|j|jd|j|d	}t	j
|}|j
|j|y)
NTrceZdZUeed<y)BTestSlots.test_weakref_slot_subclass_no_weakref_slot.<locals>.BaserGNr9rrrrr*
rrrr)ceZdZy)?TestSlots.test_weakref_slot_subclass_no_weakref_slot.<locals>.ANrrrrrr.
rrrrrCrrs     r*test_weakref_slot_subclass_no_weakref_slotz4TestSlots.test_weakref_slot_subclass_no_weakref_slot)
s	D	1		
2	
			
	
	


mT^^44
aDA

ammU+rc0Gdd}tddGdd|}|jd|j|jd|j|d}t	j
|}|j
|j|y)	NceZdZdZy)BTestSlots.test_weakref_slot_normal_base_weakref_slot.<locals>.BaserNr5rrrrr;
rrrTrceZdZUeed<y)?TestSlots.test_weakref_slot_normal_base_weakref_slot.<locals>.ArGNr9rrrrr>
rrrrrCrrs     r*test_weakref_slot_normal_base_weakref_slotz4TestSlots.test_weakref_slot_normal_base_weakref_slot:
s~	)	)
D	1		
2	
	


mT^^44
aDA

ammU+rN)rrrr r'r,r0rJrSrXr(r[r_rerorzrrrrrrrrrrrrrrrrrrs.$ $?L 1d$'(d) d$'((((d$'	6	6(	6d$'66(6 ,8	%	%	,"	F,$,",rrcHeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
Zy)TestDescriptorscHGddtGfdd}|j|jjdtGfdd}|j|jjd|j|jdy)NceZdZdZdZy)(TestDescriptors.test_set_name.<locals>.Dc|dz|_yrHrPr-ownerrPs   r__set_name__z5TestDescriptors.test_set_name.<locals>.D.__set_name__Q

 3J	rc|y|SNrCrr-instancers   r__get__z0TestDescriptors.test_set_name.<locals>.D.__get__S
s'rN)rrrrrrrrrbrP
s
'
rrbc*eZdZUWZeed<y)(TestDescriptors.test_set_name.<locals>.CrN)rrrrr:r;rbsrr%rZ
s3AsJrr%cxc:eZdZUeWdZeed<y)rFr:rNrrrrGrr:r;rsrr%z(TestDescriptors.test_set_name.<locals>.Cb
51As1rrCr(r)rrPrds  @r
test_set_namezTestDescriptors.test_set_nameL
s		
		
	4(

	2	2
	24("rcGddtGfdd}|j|jjdy)NceZdZdZy).TestDescriptors.test_non_descriptor.<locals>.Dc|dz|_yrHrrs   rrz;TestDescriptors.test_non_descriptor.<locals>.D.__set_name__m
rrN)rrrrrrrrbrl
s
'rrbc:eZdZUeWdZeed<y).TestDescriptors.test_non_descriptor.<locals>.CFr:rNrrsrr%rp
rrr%rrrds  @rtest_non_descriptorz#TestDescriptors.test_non_descriptorh
s>	'	'
	2	2
	24(rcGdd}|t_tGfdd}|jjjdy)NceZdZy)2TestDescriptors.test_lookup_on_instance.<locals>.DNrrrrrbrw
r_rrbc0eZdZUeWdZeed<y)2TestDescriptors.test_lookup_on_instance.<locals>.CFr:r3NrPrSsrr%r
s/As/rr%rrrr(r)r)r-rbr%rs   @rtest_lookup_on_instancez'TestDescriptors.test_lookup_on_instanceu
sT		
C
	0	0
	0	
22A6rcGddt_tGfdd}|jjjdy)NceZdZy)/TestDescriptors.test_lookup_on_class.<locals>.DNrrrrrbr
r_rrbc:eZdZUeWdZeed<y)/TestDescriptors.test_lookup_on_class.<locals>.CFr:r3NrPrsrr%r
rrr%rCrrds  @rtest_lookup_on_classz$TestDescriptors.test_lookup_on_class
sK		
	2	2
	2	
22A6rcGddt_tGfdd}jj|d}|j	jj
dy)NceZdZy).TestDescriptors.test_init_calls_set.<locals>.DNrrrrrbr
r_rrbc,eZdZUWZWed<y).TestDescriptors.test_init_calls_set.<locals>.Cr3Nrrrr3r;rsrr%r
3AqJrr%rrC)r__set__r(
reset_mockr)rr-r%rrbs   @rtest_init_calls_setz#TestDescriptors.test_init_calls_set
sd		F				
		
		
aD--q1rc(Gddt_t_tGfdd}|d}jj	|j
}|j
jjdy)NceZdZy)7TestDescriptors.test_getting_field_calls_get.<locals>.DNrrrrrbr
r_rrbc,eZdZUWZWed<y)7TestDescriptors.test_getting_field_calls_get.<locals>.Cr3Nrrsrr%r
rrr%rrC)rrrr(rr3r)r)r-r%rr4rbs    @rtest_getting_field_calls_getz,TestDescriptors.test_getting_field_calls_get
sx		F	F				
	
aD	
		--q1rcGddt_tGfdd}|d}jjd|_|jjjdy)NceZdZy)7TestDescriptors.test_setting_field_calls_set.<locals>.DNrrrrrbr
r_rrbc,eZdZUWZWed<y)7TestDescriptors.test_setting_field_calls_set.<locals>.Cr3Nrrsrr%r
rrr%rrrC)rrr(rr3r)rrs   @rtest_setting_field_calls_setz,TestDescriptors.test_setting_field_calls_set
sm		F				
	
aD	
		--q1rcdGddt_tGfdd}jj|d}|j	jj
d|_d|_|j	jj
dy)NceZdZy)FTestDescriptors.test_setting_uninitialized_descriptor_field.<locals>.DNrrrrrbr
r_rrbceZdZUWed<y)FTestDescriptors.test_setting_uninitialized_descriptor_field.<locals>.Cr3Nrrsrr%r
rrr%rr)rrr(rr)rr3rs   @r+test_setting_uninitialized_descriptor_fieldz;TestDescriptors.test_setting_uninitialized_descriptor_field
s		F				
		
		
aD--q1c--q1rcGddtGfdd}|}|j|jd|d}|j|jdy)Nc4eZdZdededefdZdededdfdZy)-TestDescriptors.test_default_value.<locals>.DrrrUc |y|jSr_xrs   rrz5TestDescriptors.test_default_value.<locals>.D.__get__
s#{{"rr4Nc||_yrrr-rr4s   rrz5TestDescriptors.test_default_value.<locals>.D.__set__
	#rrrrrrr:rrrrrrbr
6
#
#F
#s
#
$
$C
$D
$rrbc,eZdZUWZWed<y)-TestDescriptors.test_default_value.<locals>.Cr3Nrrsrr%r"
rrr%rrrrs   @rtest_default_valuez"TestDescriptors.test_default_value
s`	$	$
		
	
Cc"
aDa rcGddtGfdd}|jtd5|}dddy#1swYyxYw)Nc4eZdZdededefdZdededdfdZy)0TestDescriptors.test_no_default_value.<locals>.DrrrUc2|
t|jSr)r9rrs   rrz8TestDescriptors.test_no_default_value.<locals>.D.__get__
s#(**{{"rr4Nc||_yrrrs   rrz8TestDescriptors.test_no_default_value.<locals>.D.__set__
rrrrrrrbr&
r rrbc,eZdZUWZWed<y)0TestDescriptors.test_no_default_value.<locals>.Cr3Nrrsrr%r*
rrr%z&missing 1 required positional argumentrrs   @rtest_no_default_valuez%TestDescriptors.test_no_default_value
sU	$	$
		
	
#
#I/W
X	A			sAAN)
rrrrrrrrr	rrr#r+rrrrrK
s4#8)7 7
22$2"2*!*rrc0eZdZdZdZdZdZdZdZy)TestStringAnnotationscdD]U|j5tGfdd}||jd|jdddWy#1swYbxYw)N)z
ClassVar[int]zClassVar [int]z ClassVar [int]rz
 ClassVar ztyping.ClassVar[int]ztyping.ClassVar[str]z typing.ClassVar[str]ztyping .ClassVar[str]ztyping. ClassVar[str]ztyping.ClassVar [str]ztyping.ClassVar [ str]ztyping.ClassVar.[int]ztyping.ClassVar+typestrceZdZUWed<y).TestStringAnnotations.test_classvar.<locals>.Cr8Nrr/srr%r2Jrr%r8)r2r(rrr-r%r0s  @r
test_classvarz#TestStringAnnotations.test_classvarsr	2G$g.

2  ajj1

2

2%	2$

2

2s9AA&	cdD]T|j5tGfdd}|j|djddddVy#1swYaxYw)N)
CVz
t.ClassVarzt.ClassVar[int]ztyping..ClassVar[int]Classvarz
Classvar[int]ztyping.ClassVarx[int]ztypong.ClassVar[int]zdataclasses.ClassVar[int]ztypingxClassVar[str]r/ceZdZUWed<y)3TestStringAnnotations.test_isnt_classvar.<locals>.Cr8Nrr/srr%r:2r3rr%rr2r(r)r8r4s  @rtest_isnt_classvarz(TestStringAnnotations.test_isnt_classvar%so
	.Gg.
.  2"-

.
.	.
.
.8AA%	cdD]c|j5tGfdd}|jtd5|djddddddey#1swYxYw#1swY|xYw)N)
zInitVar[int]zInitVar [int] InitVar [int]rz	 InitVar rzdataclasses.InitVar[str]z dataclasses.InitVar[str]zdataclasses .InitVar[str]zdataclasses. InitVar[str]zdataclasses.InitVar [str]zdataclasses.InitVar [ str]zdataclasses.InitVar.[int]zdataclasses.InitVar+r/ceZdZUWed<y)-TestStringAnnotations.test_initvar.<locals>.Cr8Nrr/srr%r@Or3rr%zobject has no attribute 'x'rC)r2r(rHr9r8r4s  @rtest_initvarz"TestStringAnnotations.test_initvar9s	G$g.
++N,IKaDFF


%	0


s#,A7A+A7+A40A77B	cdD]T|j5tGfdd}|j|djddddVy#1swYaxYw)N)IVz
dc.InitVarzxdataclasses.xInitVarztyping.xInitVar[int]r/ceZdZUWed<y)2TestStringAnnotations.test_isnt_initvar.<locals>.Cr8Nrr/srr%rE_r3rr%rr;r4s  @rtest_isnt_initvarz'TestStringAnnotations.test_isnt_initvarXso	.G
g.
.  2"-

.
.	.

.
.r=c
ddlm}ddlm}ddlm}ddlm}||||fD]/}|j|5|jr|jd}n|j}|j|jd|jdd	d
dd}d
D]L}|j|5|jtd|d5t||ddddddN|jr9|jd|j|j|j dn|j#d|jddd2y#1swYxYw#1swYxYw#1swYVxYw)Nr)dataclass_module_1)dataclass_module_1_str)dataclass_module_2)dataclass_module_2_str)mrrrCrMrr)iv0iv1iv2iv3)
field_namezobject has no attribute 'r/not_iv4)rIrHrIrJrKr2
USING_STRINGSr7r)cv0rCrHr9rrYrrRr)r-rHrIrJrKrLrrQs        r!test_classvar_module_level_importz7TestStringAnnotations.test_classvar_module_level_importfs\+/+/$&<$&<!	<A"
<??RAA  +DDAq!Q'">3J<3!33NF_`j_kklDmn3$Az23333??MM)QZZ8$$QYY2$$Y

;=
<
<!	<*3333#
<
<s=A7E+,E	
EE	A+E+EE	E(
$E++E5	cddlm}|jt|jd|j
i|jt|jj|j
tddy)Nr)dataclass_textannor)rrU)rIrWr)rr)r%rrX)r-rWs  rtest_text_annotationsz+TestStringAnnotations.test_text_annotationssk+-112
&**+	-	
-11::;&**Dz
#	$rN)	rrrr5r<rArFrUrXrrrr-r-s""2H.(>.'<R	$rr-ByMakeDataClassr8ManualModuleMakeDataClass)moduleWrongWrongModuleMakeDataclasscustomcreZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZy)TestMakeDataclassc	tddtfdttdfgddi}|d	}|j|j|j
fd
|j|j
dy)Nr%r8rrradd_onec |jdzSrr~rs rrz/TestMakeDataclass.test_simple.<locals>.<lambda>sdffqjrrr)rrr)rr:rGr)r8rrbrs   rr zTestMakeDataclass.test_simplesp3 #J #uQ'78:&/1H%I
K
bE!##qssW-b)rc	zi}tddtfdttdfg|}|j|iy)Nr%r8rrrrd)rr:rGr))r-nsr%s   rtest_no_mutate_namespacez*TestMakeDataclass.test_no_mutate_namespacesC
3 #J #uQ'78:%'
)	
R rcGdd}Gdd}tddtfg||f}|d}|j|||j|||j||y)	NceZdZy)*TestMakeDataclass.test_base.<locals>.Base1NrrrrBase1rjr_rrkceZdZy)*TestMakeDataclass.test_base.<locals>.Base2NrrrrBase2rmr_rrnr%r8rrM)rr:rr-rkrnr%rs     r	test_basezTestMakeDataclass.test_basesm				3 #J<"'
1
aDa#a'a'rctGdd}Gdd}tddtfg||f}|jtd5|d	}ddd|d
d	}|j|||j|||j|||j
|j|jfdy#1swYqxYw)NceZdZUeed<y)4TestMakeDataclass.test_base_dataclass.<locals>.Base1r8Nr9rrrrkrtr<rrkceZdZy)4TestMakeDataclass.test_base_dataclass.<locals>.Base2Nrrrrrnrvr_rrnr%rrozrequired positionalrMrCr)	r(rr:rHrrr)r8rrps     rtest_base_dataclassz%TestMakeDataclass.test_base_dataclasss			
			3 #J<"'
1
#
#I/D
E	!A	
aGa#a'a'!##qssV,		s	CC
cd}tddtfdttfgd|i}|dd}|jt	|dd	i|jtt
|d
y)Nc.|xj|zc_yrr~r-rs  r	post_initz2TestMakeDataclass.test_init_var.<locals>.post_initsFFaKFrr%r8rrcrdrMrrrC)rr:rr)rr*r+)r-r{r%rs    rrzTestMakeDataclass.test_init_varst	
3 #J '#,/'6y%A	

aGa3(+VAY+rc
|tddtfdttdfdtttdfg}|d}|j	t|ddi|j	t
t|d|j	|jd|j	|jdy)	Nr%r8rrrrrrC)
rr:rrGr)rr*r+rrrs   rrz TestMakeDataclass.test_class_vars3 #J (3-4 (3-r1BC


aDa3(+VAY+b!b!rc
\tddtfdttdfdtttdfgd	}|j	d
t||j
dt||jtd5tdgd
}dddy#1swYyxYw)Nr%r8rrrrrFrrrzunexpected keyword argument)xxinit)	rr:rrGrrrYrHrrs  rtest_other_paramsz#TestMakeDataclass.test_other_paramss3 #J (3-4 (3-r1BC!&
'	
T!W-

j$q'*
#
#I/L
M	-s!&+-A	-	-	-s
B""B+cvtdgd}|ddd}|jt|dddd|j|jddddtdddtfd	g}|ddd}|jt|dddd|j|jdtddy)
Nrr8rrrCrMrz
typing.Anyr8rr)rr)rr;r:rs   r
test_no_typeszTestMakeDataclass.test_no_typess7O4
aAJa":;**,2>2>-@	A
7S3*c$:;
aAJa":;**,252>-@	Arc|jtjt|jtdjt|jtjdtdg}|j|jt|j|jty)NrCr^Nested)r)rYrrr]r)r-rs  rtest_module_attrz"TestMakeDataclass.test_module_attrs33X>+66A1<<hG"-**H5,,h7rcttfD]}ttjdzD]}|j|5|j
tjtj||||j
tjtj|d||ddddy#1swYxYwNrCra)	rYrZrrrr2r)rrr-klassrs   rtest_pickle_supportz%TestMakeDataclass.test_pickle_supports%'@A
	Ev66:;	
\\\.$$V\\%%?@$$V\\%(E%BCa	

	s
A?C

Cc	ttfD]}ttjdzD]}|j|5|j
tj5tj||ddd|j
tj5tj|d|ddddddy#1swYZxYw#1swY"xYw#1swYxYwr)	WrongNameMakeDataclassr]rrrr2rPickleErrorrrs   rtest_cannot_be_pickledz(TestMakeDataclass.test_cannot_be_pickled&s,.FG	6Ev66:;
6\\\.6**6+=+=>3UE23**6+=+=>6U1Xu5666
6	6336666s< C)!C	8'C)C	<C)C
C)C&
"C))C2cdD]J}|j|5|jtd5tdd|gddddddLtdfD]J}|j|5|jtd5tdd|gddddddLy#1swYjxYw#1swYxYw#1swY,xYw#1swY{xYw)N)r)rCrMrr)	bad_fieldzInvalid field: r%r%c|Srrr~s rrzCTestMakeDataclass.test_invalid_type_specification.<locals>.<lambda>9s1rzhas no len\(\))r2rHrrr,)r-rs  rtest_invalid_type_specificationz1TestMakeDataclass.test_invalid_type_specification/s	:I	2
:++I7IJ:"3i(89:
:
:	: $	:I	2
:++I7HI:"3i(89:
:
:	:	::
:
:::
:
:sEB3B'B3.CB?C'B0,B33B<	?CCC	c	dD]K}|j|5|jtd5td|d|gddddddMy#1swYxYw#1swYdxYw)N)r%abrGzField name duplicatedr%r%r2rHrrr-rGs  rtest_duplicate_field_namesz,TestMakeDataclass.test_duplicate_field_names?sp 	=EE*
=++I7NO="3U(;<=
=
=	===
=
=s!AAAAAA'	cdD]}|j|5|jtd5tdd|gddd|jtd5td|gddd|jtd5td|dgddddddy#1swYmxYw#1swYMxYw#1swY,xYw#1swYxYw)N)forasyncawaitasrzmust not be keywordsr%r%rrs  rtest_keyword_field_namesz*TestMakeDataclass.test_keyword_field_namesEs4	6EE*
6++I7MN6"3e56++I7MN1"301++I7MN6"356
6
6	6661166
6
6QCB*CB6*CCC*B3/C6B?;CCCC	cdD]}|j|5|jtd5tdd|gddd|jtd5td|gddd|jtd5td|dgddddddy#1swYmxYw#1swYMxYw#1swY,xYw#1swYxYw)N)()x,yr2@3rzlittle johnny tablesrzmust be valid identifiersr%r%rrs  rtest_non_identifier_field_namesz1TestMakeDataclass.test_non_identifier_field_namesOsJ	6EE*
6++I7RS6"3e56++I7RS1"301++I7RS6"356
6
6	6661166
6
6rc tdgdy)Nr%)__aa_aa_)rrs rtest_underscore_field_namesz-TestMakeDataclass.test_underscore_field_namesYs	s45rcdD]G}|j|5t|ddg}|j|j|dddIy#1swYTxYw)N)rrrrr)	classnamer%r)r2rr)r)r-rr%s   rtest_funny_class_names_namesz.TestMakeDataclass.test_funny_class_names_names^s_7	8I	2
8"9sCj9  Y7
8
8	8
8
8s+AA	N)rrrr rgrqrwrrrrrrrrrrrrrrrrr`r`sX*!(-$,
"-"
A86: =666
8rr`cZeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
Zy)TestReplacectdGdd}|dd}t|d}|j|jd|j|jdy)	NTrc"eZdZUeed<eed<y)TestReplace.test.<locals>.Cr8rNr9rrrr%rhrJrr%rCrMrr~)r(rWr)r8rr-r%rrs    rrIzTestReplace.testgs^	$			
 	
aG
Q!_q!q!rc2tdGdd}|dd}t|d}|j|j|j|j
|jfd	|j|j|j|j
|jfd
|jtd5t|ddd
ddd|jtd5t|dt|ddd
ddd|jtd5d|_ddd|jtd5t|dd}dddy#1swYxYw#1swYixYw#1swYOxYw#1swYyxYw)NTrc^eZdZUeed<eed<eddZeed<eddZeed<y	)
"TestReplace.test_frozen.<locals>.Cr8rFrrrrrN)rrrr:r;rGrrrrrr%rss.FFr2As2s3As3rr%rCrMrr~)rCrMrr)rrMrr
init=Falserr)r8rrrzcannot assign to field 'x'z3__init__\(\) got an unexpected keyword argument 'a'r)r8r%)r(rWr)r8rrrrHrIrtrrs    rrzTestReplace.test_frozenrsk	$		4	4
 	4
aG
Q!_!##qssACC-?"$$bddBDD1?C
#
#J
=	(AbB'	(

#
#J
=	(AAbB'	(

#
#$79U
V	BD	
#
#I0DE	'bA&B	'	'	(	(	(	(
			'	's0E)0E5+FF
)E25E>F

FctdGdd}|dd}|jtd5t|d	}dddy#1swYyxYw)
NTrc"eZdZUeed<eed<y).TestReplace.test_invalid_field_name.<locals>.Cr8rNr9rrrr%rrJrr%rCrMz3__init__\(\) got an unexpected keyword argument 'z'rrr(rHrrWrs    rtest_invalid_field_namez#TestReplace.test_invalid_field_names`	$			
 	
aG

#
#I0;<	!aB	!	!	!sAActdGdd}|jtd5t|dddd|jtd5tdddddy#1swY6xYw#1swYyxYw)	NTrc"eZdZUeed<eed<y)*TestReplace.test_invalid_object.<locals>.Cr8rNr9rrrr%rrJrr%r|rr~rrrs  rtest_invalid_objectzTestReplace.test_invalid_objects	$			
 	
#
#I/C
D	AO	
#
#I/C
D	AO						sA3A?3A<?BctGdd}|d}d|_t|d}|j|j|jfd|jtd5t|d	d
ddd|jtd5t|d
dddy#1swY6xYw#1swYyxYw)
Nc6eZdZUeed<eddZeed<y)#TestReplace.test_no_init.<locals>.Cr8FrrrNrrrrr%rsFr2As2rr%rCrrr~)rrrrMrr)r(rrWr)r8rHrIrs    rrzTestReplace.test_no_inits		3	3
	3
aDQ!_"$$w/
#
#J
=	"Ab!	"
#
#J
=	A			"	"		s.B2B>2B;>CcXtGdd}|d}|d}|j|j|j|j|jd|j	t
d5t
|ddddt
|d	
y#1swYxYw)Nc,eZdZUeed<dZeeed<y)$TestReplace.test_classvar.<locals>.Cr8rrN)rrrr:r;rrrrrr%rsF#Ax}#rr%rCrMrz3__init__\(\) got an unexpected keyword argument 'y'rrrr~)r(rrr)rHrrWrs    rr5zTestReplace.test_classvars		$	$
	$
aD
aD

acc133d#
#
#I0FG	A		Q			s<B  B)c8tGdd}|dd}|j|jd|jtd5t|ddddt|dd	}|j|jd
y#1swY4xYw)Nc.eZdZUeed<eeed<dZy)0TestReplace.test_initvar_is_specified.<locals>.Cr8rc.|xj|zc_yrr~rzs  rrcz>TestReplace.test_initvar_is_specified.<locals>.C.__post_init__rorNrrrrr%rsFs|O
rr%rCrz,InitVar 'y' must be specified with replace()rr~rrr)r(r)r8rHrIrWrs   rtest_initvar_is_specifiedz%TestReplace.test_initvar_is_specifieds			
	
aHb!

#
#J1?@	AO	
Aa b!			sBBctGdd}|ddd}|jt||d|jt|d	|ddd
|jt|dd|dddy)NcFeZdZUeed<dZeeed<dZeeed<dZy)6TestReplace.test_initvar_with_default_value.<locals>.Cr8Nrr=rcb||xj|z
c_||xj|z
c_yyrr~)r-rrs   rrczDTestReplace.test_initvar_with_default_value.<locals>.C.__post_init__s+=FFaKF=FFaKF!r)	rrrr:r;rrrrcrrrr%rs(F"Aws|" Aws| 
 rr%rCrrrr~rrr=)rr)r(r)rWrs   rtest_initvar_with_default_valuez+TestReplace.test_initvar_with_default_values			 		 
		 
R1QW-a!bA*<=a1-q2a/@Arc~tGdd}|d}||_|jt|dy)NceZdZUded<y)*TestReplace.test_recursive_repr.<locals>.Cr%rNrrrrr%rr<rr%z1TestReplace.test_recursive_repr.<locals>.C(f=...)r(rr)rNrs   rtest_recursive_reprzTestReplace.test_recursive_reprs@			
	
dGa"UVrctGdd}|dd}||_||_|jt	|dy)Nc"eZdZUded<ded<y)4TestReplace.test_recursive_repr_two_attrs.<locals>.Cr%rgNrrrrr%rrJrr%zBTestReplace.test_recursive_repr_two_attrs.<locals>.C(f=..., g=...))r(rrr)rNrs   rtest_recursive_repr_two_attrsz)TestReplace.test_recursive_repr_two_attrssM			
	
dDMa#>	?rctGdd}tGdd}|d}|d}||_||_|jt|dy)NceZdZUded<y)6TestReplace.test_recursive_repr_indirection.<locals>.CrbrNrrrrr%r	r<rr%ceZdZUded<y)6TestReplace.test_recursive_repr_indirection.<locals>.Dr%rNrrrrrbr
r<rrbzwTestReplace.test_recursive_repr_indirection.<locals>.C(f=TestReplace.test_recursive_repr_indirection.<locals>.D(f=...))r)r-r%rbrrs     rtest_recursive_repr_indirectionz+TestReplace.test_recursive_repr_indirectionsm			
	
		
	
dG
dGa#8	9rctGdd}tGdd}tGdd}|d}|d}|d}||_||_||_|jt|dy)NceZdZUded<y):TestReplace.test_recursive_repr_indirection_two.<locals>.CrbrNrrrrr%rr<rr%ceZdZUded<y):TestReplace.test_recursive_repr_indirection_two.<locals>.DrrNrrrrrbrr<rrbceZdZUded<y):TestReplace.test_recursive_repr_indirection_two.<locals>.Er%rNrrrrrr"r<rrzTestReplace.test_recursive_repr_indirection_two.<locals>.C(f=TestReplace.test_recursive_repr_indirection_two.<locals>.D(f=TestReplace.test_recursive_repr_indirection_two.<locals>.E(f=...)))r)r-r%rbrrrrIs       r#test_recursive_repr_indirection_twoz/TestReplace.test_recursive_repr_indirection_twos			
	
		
	
		
	
dG
dG
dGa#9	:rctGdd}|dd}||_|jt|dy)Nc"eZdZUded<eed<y)5TestReplace.test_recursive_repr_misc_attrs.<locals>.Cr%rrNrJrrrr%r2rJrr%rCzATestReplace.test_recursive_repr_misc_attrs.<locals>.C(f=..., g=1)rrs   rtest_recursive_repr_misc_attrsz*TestReplace.test_recursive_repr_misc_attrs1sF			
	
dAJa#<	=rN)rrrrIrrrrr5rrrrrrrrrrrrfsF	"'@	!
(&""B$W
?9":0	=rrceZdZdZdZy)TestAbstractcGddtj}tdGdd|}|jt	j
||j
|ddd	|dd
dy)NcTeZdZejdZejdZy)5TestAbstract.test_abc_implementation.<locals>.Orderedcyrrrs  rrzz<TestAbstract.test_abc_implementation.<locals>.Ordered.__lt__Mrcyrrrs  rr{z<TestAbstract.test_abc_implementation.<locals>.Ordered.__le__QrrN)rrrabcabstractmethodrzr{rrrOrderedrLs4



 



 
rrTrc,eZdZUeed<ded<ded<y)2TestAbstract.test_abc_implementation.<locals>.DaterMonthrr:rNr9rrrrrUINJrrirr )rABCr(rrs
isabstractrE)r-rrs   rtest_abc_implementationz$TestAbstract.test_abc_implementationKsn	cgg	
		7	
	
	
++D124R+T$q_=rcGddtj}tGdd|}|jt	j
|d}|j
t||y)Nc0eZdZejdZy))TestAbstract.test_maintain_abc.<locals>.Acyrrrs rrz-TestAbstract.test_maintain_abc.<locals>.A.foo`rrN)rrrrrrrrrrr_s



 
rrc,eZdZUeed<ded<ded<y),TestAbstract.test_maintain_abc.<locals>.Daterrrr:rNr9rrrrrdrrrz>class Date without an implementation for abstract method 'foo')rrr(rvrsrrHr)r-rrrJs    rtest_maintain_abczTestAbstract.test_maintain_abc^s]		

	1	
	
	
**401Ny#t4rN)rrrrrrrrrrJs>&5rrc*eZdZdZdZdZdZdZy)
TestMatchArgscntGdd}|j|djdy)NceZdZUeed<y)(TestMatchArgs.test_match_args.<locals>.Cr%Nr9rrrr%r
qr<rr%r=rr(r)__match_args__rs  rtest_match_argszTestMatchArgs.test_match_argsps3			
	2--v6rcxdtGfdd}|j|djy)Nrc eZdZUeed<WZy)1TestMatchArgs.test_explicit_match_args.<locals>.Cr%Nrrrr:r;r)masrr%rxs
FNrr%r=)r(rr)r-r%rs  @rtest_explicit_match_argsz&TestMatchArgs.test_explicit_match_argsvs9
		 	 
	 	


ae**B/rcrtdddGdd}|j|jdy)NF)rNrsrMc,eZdZUeed<eed<eed<y)'TestMatchArgs.test_bpo_43764.<locals>.Xr%rrNr9rrrrrrrrr%rrr)r-rs  rtest_bpo_43764zTestMatchArgs.test_bpo_43764~s:	%e	4		
5		
))?;rctdGdd}|jd|jtdGdd}|j|jdtdGd	d
|}|j|jdtGdd}tdGd
d|}|j|jdy)NF
match_argsceZdZUeed<y)1TestMatchArgs.test_match_args_argument.<locals>.Xr%Nr9rrrrr r<rrrceZdZUeed<dZy)1TestMatchArgs.test_match_args_argument.<locals>.Yr%rPNrrrrrr"sF#NrrrPceZdZUeed<y)1TestMatchArgs.test_match_args_argument.<locals>.ZrNr9rrrZr$r<rr%c"eZdZUeed<eed<y)1TestMatchArgs.test_match_args_argument.<locals>.Ar%rNr9rrrrr'rJrrceZdZUeed<y)1TestMatchArgs.test_match_args_argument.<locals>.BrNr9rrrrr)r<rr)r%r)r(rrr)r)r-rrr%rrs      rtest_match_args_argumentz&TestMatchArgs.test_match_args_arguments	e	$		
%	)1::6	e	$	$	$
%	$	
))62	e	$		
%	))62
		
	
e	$		
%	)):6rctddtfdtfg}|j|jdtddtfdtfgd}|j|jdtddtfdtfgd}|j	d|j
tddtfdtfgd	d
i}|j|jd
y)Nr%r8rrTrF__match__args__rrrd)rr:r)rrrrs  rtest_make_dataclassesz#TestMatchArgs.test_make_dataclassess3#sc3Z 89)):63#sc3Z 8TJ)):63#sc3Z 8UK*AJJ73#sc3Z 8EUW]D^_))62rN)rrrrrrr*r-rrrr
r
os70<783rr
cBeZdZdZdZdZdZdZdZdZ	dZ
d	Zy
)TestKeywordArgscd}|jt|5tGdd}ddd|jt|5tGdd}ddd|jt|5tdGdd}dddy#1swYtxYw#1swYNxYw#1swYyxYw)Nz+field a is a ClassVar but specifies kw_onlyc0eZdZUedZeeed<y)1TestKeywordArgs.test_no_classvar_kwarg.<locals>.ATkw_onlyr%NrrrrGr%rr:r;rrrrr2s#(#68C=6rrc0eZdZUedZeeed<yr2Fr3r%Nr5rrrrz1TestKeywordArgs.test_no_classvar_kwarg.<locals>.A#(#78C=7rTr3c0eZdZUedZeeed<yr7r5rrrrz1TestKeywordArgs.test_no_classvar_kwarg.<locals>.Ar8rr>)r-rJrs   rtest_no_classvar_kwargz&TestKeywordArgs.test_no_classvar_kwargs;

#
#Is
3	7

7
7
7	7

#
#Is
3	8

8
8
8	8

#
#Is
3	8
t
$
8
8%
8	8	8	7	7
	8	8
	8	8s#B B,=B8 B),B58Cc`tdGdd}|jt|djtdGdd}|jt|djtdGdd}|j	t|djtdGd	d}|j	t|djtdGd
d}|jt|djtdGdd}|j	t|djtGdd}|j	t|djtGd
d}|jt|djtGdd}|j	t|djy)NTr3ceZdZUeed<y6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.Ar%Nr9rrrrr>r<rrrc*eZdZUedZeed<yr>Tr3r%NrrrrGr%r:r;rrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.A4(As(rc*eZdZUedZeed<yr>Fr3r%NrArrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.A5)As)rFceZdZUeed<yr=r9rrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.Ar<rc*eZdZUedZeed<yr@rArrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.ArBrc*eZdZUedZeed<yrDrArrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.ArErceZdZUeed<yr=r9rrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.Ar<rc*eZdZUedZeed<yr@rArrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.ArBrc*eZdZUedZeed<yrDrArrrrz6TestKeywordArgs.test_field_marked_as_kwonly.<locals>.ArEr)r(rvr+r4rrs  rtest_field_marked_as_kwonlyz+TestKeywordArgs.test_field_marked_as_kwonlys
4	 		
!	q	!,,-	4	 	)	)
!	)q	!,,-	4	 	*	*
!	*1--.
5	!		
"	1--.	5	!	)	)
"	)q	!,,-	5	!	*	*
"	*1--.
		
	1--.		)	)
	)q	!,,-		*	*
	*1--.rctdGdd}|j|djdtGdd}|j|dd	
jdy)NTr3ceZdZUeed<y)*TestKeywordArgs.test_match_args.<locals>.Cr%Nr9rrrr%rOr<rr%r=rrc4eZdZUeed<edZeed<y)rOr%Tr3rN)rrrr:r;rGrrrrr%z*TestKeywordArgs.test_match_args.<locals>.CsF4(As(rrrPrrs  rrzTestKeywordArgs.test_match_argssm	4	 		
!	R//4		)	)
	)	
233V<rctGdd}|dddd}|jt|5|ddddddtd	Gd
d}|dddd
}|jt|5|ddddddtGdd}|ddd}|j|jd|j|j
d|j|jd|ddd}|j|jd|j|j
d|j|jd|ddd}|j|jd|j|j
d|j|jd|ddd}|j|jd|j|j
d|j|jdy#1swYxYw#1swYxYw)Nc6eZdZUeed<eed<eed<eed<y)'TestKeywordArgs.test_KW_ONLY.<locals>.Ar%rrrNrrrr:r;KW_ONLYrrrrrSFJFFrrrrrrr-takes 2 positional arguments but 4 were givenTr3c6eZdZUeed<eed<eed<eed<y)'TestKeywordArgs.test_KW_ONLY.<locals>.Br%rrrNrTrrrrrZrVrrrz,takes 1 positional argument but 4 were givencHeZdZUeed<eed<eed<edZeed<y)'TestKeywordArgs.test_KW_ONLY.<locals>.Cr%rrFr3rNrrrr:r;rUrGrrrrr%r\s FJF5)As)rr%rCrMrP)rr)rrr%)r(rHrr)r%rr)r-rrJrr%rs      rtest_KW_ONLYzTestKeywordArgs.test_KW_ONLYs			
	
	
!qA=

#
#Is
3	
aAJ	
4	 		
!	
	
Aa<

#
#Is
3	
aAJ	
	*	*
	*

aaLa a a 
a1Na a a 
a1Na a a 
Q!a a a K				sH)H6)H36IctGdd}|dddd}|jt|5|ddddddy#1swYyxYw)Nc6eZdZUeed<ded<eed<eed<y)1TestKeywordArgs.test_KW_ONLY_as_string.<locals>.Ar%zdataclasses.KW_ONLYrrrNr9rrrrra4sF$$FFrrrrrrWrXr)r-rrJs   rtest_KW_ONLY_as_stringz&TestKeywordArgs.test_KW_ONLY_as_string3s[			
	
	
!qA=

#
#Is
3	
aAJ			sAAcd}|jt|5tGdd}ddd|jt|5tGdd}ddd|jt|5tGdd}dddtGdd}tGdd}tGdd	|}|jt|5tGd
d}tGdd	|}dddy#1swYxYw#1swYxYw#1swYxYw#1swYyxYw)Nz6'Y' is KW_ONLY, but KW_ONLY has already been specifiedc@eZdZUeed<eed<eed<eed<eed<y)-TestKeywordArgs.test_KW_ONLY_twice.<locals>.Ar%rrrrNrTrrrrreCs

rrc@eZdZUeed<eed<eed<eed<eed<y)rer%rrrrNrTrrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.ALs

rc@eZdZUeed<eed<eed<eed<eed<y)rer%rrrrNrTrrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.AUs

rcHeZdZUeed<eed<eed<edZeed<y)rer%rrTr3rNr]rrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.A^s FJF4(As(rc6eZdZUeed<eed<eed<eed<yrer%rrrNrTrrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.AfrVrc"eZdZUeed<eed<y)-TestKeywordArgs.test_KW_ONLY_twice.<locals>.BrrNrrrrUr;r:rrrrrllsJFrrc6eZdZUeed<eed<eed<eed<yrjrTrrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.Ass
rc,eZdZUeed<eed<eed<y)rlrrrNrmrrrrz-TestKeywordArgs.test_KW_ONLY_twice.<locals>.Bys

rr>)r-rJrrs    rtest_KW_ONLY_twicez"TestKeywordArgs.test_KW_ONLY_twice?skF

#
#Is
3	



	
#
#Is
3	



	
#
#Is
3	



	
	)	)
	)
		
	

		
	

#
#Is
3	





A

		a						<		s/DD&=D2)(D>D#&D/2D;>EctGdd}|jtd5|dddddddtGd	d
}|dddd}|jt	|dddy#1swYGxYw)NcReZdZUeed<eed<eeed<eed<eeed<dZy))TestKeywordArgs.test_post_init.<locals>.Ar%rrrrc$td|d|)Nzb=z d=rbr-rrs   rrcz7TestKeywordArgs.test_post_init.<locals>.A.__post_init__s!RQD!,//rNrrrr:r;rUrrcrrrrrss(FJs|OFs|O
0rrzb=3 d=4rCrMrr)rrrcReZdZUeed<eed<eeed<eed<eeed<dZy))TestKeywordArgs.test_post_init.<locals>.Br%rrrrc ||_||_yrr%rrus   rrcz7TestKeywordArgs.test_post_init.<locals>.B.__post_init__srNrvrrrrrxs(FJs|OFs|O
rrrz)r(rHrr)rV)r-rrrs    rruzTestKeywordArgs.test_post_inits		0	0
	0
#
#K
;	 
a1Q	 
		
	
a1Q!!$45	 	 s
A==BctGdd}|dd}|j|jd|j|jd|j|jd|j|j
dd}|j
t|5tGd	d}dddy#1swYyxYw)
NcHeZdZUdZeed<eed<eed<dZeed<eed<y)	(TestKeywordArgs.test_defaults.<locals>.Arr%rrrCrrNrrrr%r:r;rUrrrrrr}s#AsJJFAsJFrrrr)rrrrCz1non-default argument 'z' follows default argumentcReZdZUdZeed<eed<eed<eed<dZeed<eed<y	)
r}rr%rrrrCrrNr~rrrrz(TestKeywordArgs.test_defaults.<locals>.As(3

3
r)r(r)r%rrrrHr)r-rr%	err_regexs    r
test_defaultszTestKeywordArgs.test_defaultss			
	
QKa a a a H	

#
#Iy
9	



			s&CCc	Ntddgd}|jt|djtdddttdfgd}|jt|dj|j
t|d	jy)
Nrr%Tr3rrrFrC)rrvr+r4r:rGrrWs   rtest_make_dataclassz#TestKeywordArgs.test_make_dataclasss3t4q	!,,-3#sE%,@!AB#'
)	
q	!,,-1--.rN)rrrr:rLrr^rbrprurrrrrr/r/s28"2/h=.!`
>B64:/rr/__main__);dataclassesrrlrrsrr^rrnunittest
unittest.mockrtypingrrrrr	r
rrr
rrrcollectionsrrrr	functoolsr	Exceptionrr!rrrr.rOrcr~rrrr-rr:rYrrZrr]r`rrr
r/mainrrr<module>rs(

	
mmmm!CC$
#)"b!x  b!JC H-- Fc/H%%c/LR%x  R%jD*x  D*N,%X

,%^J8$$JXYMx  YMxW""Wtq,!!q,hsh''sjX$H--X$v!!2c3ZLA*+F-0#J<2:<(3*>)*D,/:,19;@8))@8DT=(##T=H"58$$"5J>3H%%>3BO/h''O/dzHMMOr