U kf @sHdZddlmZddlmZddlmZddlmZGdd d eZ Gd d d eZ Gd d d eZ Gddde Z GdddeZ GdddeZGdddeZGdddeZGdddZGdddZGdddeeZGdddZGd d!d!ZGd"d#d#ZGd$d%d%ZGd&d'd'ZGd(d)d)ZGd*d+d+Zd,S)-zOClasses used in pickling tests, need to be at the module level for unpickling. ) annotations)ComparableEntity)Column)Stringc@s eZdZdS)UserN__name__ __module__ __qualname__r r M/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/testing/pickleable.pyrsrc@s eZdZdS)OrderNr r r r rrsrc@s eZdZdS) DingalingNr r r r rrsrc@s eZdZdS) EmailUserNr r r r rr!src@s eZdZdS)AddressNr r r r rr%src@s eZdZdS)Child1Nr r r r rr*src@s eZdZdS)Child2Nr r r r rr.src@s eZdZdS)ParentNr r r r rr2src@seZdZdddZdS)ScreenNcCs||_||_dSN)objparent)selfrrr r r__init__7szScreen.__init__)Nr r r rr r r rr6src@seZdZeeZdS)MixinN)r r r rrZ email_addressr r r rr<src@s eZdZdS) AddressWMixinNr r r r rr@src@s$eZdZdddZejZddZdS)Fooim stuffcCsd|_||_||_dS)Nzim datadatastuffmoredata)rr$r#r r rrEsz Foo.__init__cCs$|j|jko"|j|jko"|j|jkSrr!rotherr r r__eq__Ls    z Foo.__eq__N)r )r r r robject__hash__r'r r r rrDs rc@s*eZdZddZejZddZddZdS)BarcCs||_||_dSrxyrr,r-r r rrUsz Bar.__init__cCs$|j|jko"|j|jko"|j|jkSr __class__r,r-r%r r rr'[s    z Bar.__eq__cCsd|j|jfSNz Bar(%d, %d)r+rr r r__str__bsz Bar.__str__N)r r r rr(r)r'r3r r r rr*Tsr*c@seZdZddZddZdS) OldSchoolcCs||_||_dSrr+r.r r rrgszOldSchool.__init__cCs$|j|jko"|j|jko"|j|jkSrr/r%r r rr'ks    zOldSchool.__eq__N)r r r rr'r r r rr4fsr4c@seZdZddZdS)OldSchoolWithoutComparecCs||_||_dSrr+r.r r rrtsz OldSchoolWithoutCompare.__init__Nrr r r rr5ssr5c@seZdZddZddZdS)BarWithoutComparecCs||_||_dSrr+r.r r rrzszBarWithoutCompare.__init__cCsd|j|jfSr1r+r2r r rr3~szBarWithoutCompare.__str__N)r r r rr3r r r rr6ysr6c@s,eZdZddZddZddZddZd S) NotComparablecCs ||_dSrr"rr"r r rrszNotComparable.__init__cCst|Sridr2r r rr)szNotComparable.__hash__cCstSrNotImplementedr%r r rr'szNotComparable.__eq__cCstSrr<r%r r r__ne__szNotComparable.__ne__Nr r r rr)r'r>r r r rr7sr7c@s,eZdZddZddZddZddZd S) BrokenComparablecCs ||_dSrr8r9r r rrszBrokenComparable.__init__cCst|Srr:r2r r rr)szBrokenComparable.__hash__cCstdSrNotImplementedErrorr%r r rr'szBrokenComparable.__eq__cCstdSrrAr%r r rr>szBrokenComparable.__ne__Nr?r r r rr@sr@N)__doc__ __future__rentitiesrZschemartypesrrrrrrrrrrrrrr*r4r5r6r7r@r r r r s,