Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
properties.cpython-313.pyc274 linesDownload Raw Back to __pycache__
1�

2��j�}�	���SrSSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJ	r	 SS	KJ3r4 SS5KJr SSKJr SSKJ
r
 SS
KJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJr SSKJ r  SSKJ!r! SSKJ"r" SSKJ#r# SSK$J%r% SS K&J'r' S!SKJr( S!S"KJ)r) S!S#KJ*r* S!S$KJ&r& S!S%K+J,r, S!S&K+J-r- S!S'K.J/r/ S!S(K0J1r1 S!S)K0J2r2 S!S*K3J4r4 S!S+K5J6r6 S!S,K5J7r7 S!S-K5J8r8 S!S.K5J9r9 S!S/K5J:r: S!S0K5J;r; S!S1K5J<r< S!S2K5J=r= \
(a`SS3K>J?r? SS4K>J@r@ SS5K>JArA SS6K>JBrB SS7KJCrC SS8KDJErE SS9KFJGrG SS:KHJIrI SS;KJJKrK SS<KJJLrL S!S=KMJNrN S!S>KOJPrP S!S?KOJQrQ S!S@KRJSrS S!SAK5JTrT S!SBK5JUrU \"SC\SD9rV\"SE\SD9rW\"SFSGSD9rX/SHQrY\*R�"SISJ\ \V\#\V\\*R�55r\"SKSL\\\V\\V5r]"SMSN\\ \V\\V5r^gO)Pz|MapperProperty implementations.6 7This is a private module which defines the behavior of individual ORM-8mapped attributes.9 10�)�annotations)�Any)�cast)�Dict)�List)�Optional)�Sequence)�Set)�Tuple)�Type)�
TYPE_CHECKING)�TypeVar)�Union�)�11attributes)�exc)�strategy_options)�_DeclarativeMapped)�class_mapper)�CompositeProperty)�ConcreteInheritedProperty)�SynonymProperty)�_AttributeOptions)�_DEFAULT_ATTRIBUTE_OPTIONS)�_IntrospectsAnnotations)�_MapsColumns)�MapperProperty)�PropComparator)�StrategizedProperty)�RelationshipProperty)�de_stringify_annotation�)�12ForeignKey)�log)�util)�	coercions)�roles)�_NoArg)�Column)�SchemaConst)�13TypeEngine)�de_optionalize_union_types)�get_args)�
includes_none)�	is_a_type)�14is_fwd_ref)�	is_pep593)�	is_pep695)�Self)�_IdentityKeyType)�
_InstanceDict)�_ORMColumnExprArgument)�
_RegistryType)�Mapped)�_ClassScanMapperConfig)�Mapper)�Session)�_InstallLoaderCallableProto)�
InstanceState)�	_InfoType)�
ColumnElement)�NamedColumn)�OperatorType)�_AnnotationScanType)�RODescriptorReference�_T)�bound�_PT�_NCzNamedColumn[Any])�ColumnPropertyrrr rc�R^�\rSrSr%Sr\RrSrSr	S\15S'S\16S'S	\17S18'S\19S'S
rSSSSSSSSSSSS.S#U4SjjjrS$Sjr
\S%Sj5r\S&Sj5rS'Sjr\R&"SS5S(Sj5r\R&"SS5S(Sj5rS)Sjr\S)Sj5rS*SjrS+U4SjjrS,SjrS-Sjr"SS \R8\\5rS.S!jr S"r!U=r"$)/rH�az�Describes an object attribute that corresponds to a table column20or other column expression.21 22Public constructor is the :func:`_orm.column_property` function.23 24TFzList[NamedColumn[Any]]�columns�bool�_is_polymorphic_discriminator�
Optional[str]�_mapped_by_synonymzType[PropComparator[_T]]�comparator_factory)rK�group�deferred�25instrumentrP�active_history�expire_on_flush�_creation_orderrMrO�_deferred_column_loader�_raise_column_loader�_renders_in_subqueries�	raiseloadN)�attribute_optionsrQrRrZrPrTrU�info�doc�_instrument�_assume_readonly_dc_attributesc�>�[TU]UUS9 U4U
-nUVs/sH(n[R"[R26U5PM* snUlX0lX@lXPl	X�l27UbUOURRUl
XplX�lU	bUR R#U	5 U28bX�lO;['UR5Hn[)USS5n29U30cMX�l O	 SUl[*R,"U5 SUR4SUR44UlUR(aU=R.S-
slggs snf)N)r[r_r]rRrS))rZT)�super�__init__r&�expectr'�LabeledColumnExprRolerKrQrRrZrS�	__class__�31ComparatorrPrTrUr\�updater]�reversed�getattrr%�set_creation_order�strategy_key)�self�columnr[rQrRrZrPrTrUr\r]r^r_�additional_columnsrK�c�colres                 ��_D:\code\apps\devtools\python\user_packages\Python313\site-packages\sqlalchemy/orm/properties.pyrb�ColumnProperty.__init__�sQ��� 	���/�+I�	�	32��)�0�0��FM�33�FM��I���U�8�8�!�<�g�34����35� �
�"��%��"�-�
����*�*�	
��36-��.�����I�I���T�"��?��H�����-���c�5�$�/���?�"�H��	.� �������%�����'�
�4�?�?�+�37����>�>����!7�7����G38s�/Ec39�p�URSn40U41RcXZlU42RcXZlgg�Nr)rK�key�name)rl�	decl_scan�registry�cls�originating_moduleru�mapped_container�43annotation�extracted_mapped_annotation�is_dataclass_fieldrms           rq�declarative_scan�ColumnProperty.declarative_scan�s4�����a����:�:���J��;�;���K��c��U$�N��rls rq�mapper_property_to_assign�(ColumnProperty.mapper_property_to_assign�s���r�c��URVs/sH-n[U[5(dMURbM)US4PM/ sn$s snfrt)rK�44isinstancer)�table)rlros  rq�columns_to_assign� ColumnProperty.columns_to_assign�sI��45�\�\�46�!���!�V�$�
�)*���
�Q��F�!�47�	48��49s�A�A�Ac��SUR;aURR$SUR;=(d XRR;$)N)�query_expressionT)rRT)rk�strategy�_have_default_expression�parent�_readonly_propsr�s rq�%_memoized_attr__renders_in_subqueries�4ColumnProperty._memoized_attr__renders_in_subqueries�sH��%��):�):�:��=�=�9�9�9�!��):�):�:�50����3�3�3�	51r�zsqlalchemy.orm.statezsqlalchemy.orm.strategiesc��[RRn[RRnURRURRURUR5UR5$r��52r%�	preloaded�	orm_state�orm_strategiesr=�"_instance_level_callable_processorr��
class_manager�LoadDeferredColumnsru�rl�state�53strategiess   rq�&_memoized_attr__deferred_column_loader�5ColumnProperty._memoized_attr__deferred_column_loader�sa�����(�(���^�^�2�2�54��"�"�E�E��K�K�%�%��*�*�4�8�8�4��H�H�55�	56r�c��[RRn[RRnURRURRURURS5UR5$)NTr�r�s   rq�#_memoized_attr__raise_column_loader�2ColumnProperty._memoized_attr__raise_column_loader�sc�����(�(���^�^�2�2�57��"�"�E�E��K�K�%�%��*�*�4�8�8�T�:��H�H�58�	59r�c��UR$)zcAllow the ColumnProperty to work in expression before it is turned60into an instrumented attribute.61)�62expressionr�s rq�__clause_element__�!ColumnProperty.__clause_element__s��63���r�c� �URS$)azReturn the primary column or expression for this ColumnProperty.64 65E.g.::66 67 68    class File(Base):69        # ...70 71        name = Column(String(64))72        extension = Column(String(8))73        filename = column_property(name + "." + extension)74        path = column_property("C:/" + filename.expression)75 76.. seealso::77 78    :ref:`mapper_column_property_sql_expressions_composed`79 80r)rKr�s rqr��ColumnProperty.expressions��(�|�|�A��r�c��UR(dg[R"URURURX5UURS9 g)N)�81comparator�parententityr])rSr�register_descriptor�class_rurPr])rl�mappers  rq�instrument_class�ColumnProperty.instrument_class%s@�������&�&��M�M��H�H��.�.�t�<�����	82r�c�|>�[TU]5 [UR5S:�a�[	UR83R5RUR5(aV[R"SUR84<SURS<SURS<SUR<S3	5 ggg)Nrz85On mapper z, primary key column 'z6' is being combined with distinct primary key column 'rz' in attribute 'zM'. Use explicit properties to give each column its own mapped attribute name.)ra�do_init�lenrK�setr��primary_key�86issupersetr%�warnru)rlres �rqr��ColumnProperty.do_init1s����
�����t�|�|��q� �S����)@�)@�%A�%L�%L��L�L�&87�&88�
�I�I��;�;����Q�����a��$�(�(�
L�
�&89� r�c�l�[URURURURS.6$)N)rRrQrT)rHrKrRrQrTr�s rq�copy�ColumnProperty.copyAs-���
�\�\��]�]��*�*��.�.�	90�	91r�c	�j�UR(dgURU;aSX0Rn	U(dX�UR'gURUR5n92U93RXEU	S5 gUR(a-URU;aURXPR/SS9 ggg)NT)�	no_loader)rSru�get_implr��has_identity�_expire_attributes)rl�session�source_state�source_dict�94dest_state�	dest_dict�load�95_recursive�_resolve_conflict_map�value�impls           rq�merge�ColumnProperty.mergeIs�������
�X�X��
$����)�E��&+�$�(�(�#�!�*�*�4�8�8�4�������t�<�
�
$�
$�����)B��)�)��H�H�:��
*�
�*C�
$r�c���\rSrSr%Sr\(dSrS\S'S\S'SSjr\(aSS	jr	SS96jr97SSjrSSjrSS
jr
SSjrSSjrSrg)�ColumnProperty.Comparatorica8Produce boolean, comparison, and other operators for98:class:`.ColumnProperty` attributes.99 100See the documentation for :class:`.PropComparator` for a brief101overview.102 103.. seealso::104 105    :class:`.PropComparator`106 107    :class:`.ColumnOperators`108 109    :ref:`types_operators`110 111    :attr:`.TypeEngine.comparator_factory`112 113)r�r\�expressionsz*RODescriptorReference[ColumnProperty[_PT]]�prop�Sequence[NamedColumn[Any]]r�c�&�URnUUUURRS.nUnURR(a+UnURRRU5nXSS'UR
U5RSUS.5$)a�annotate and possibly adapt a column to be returned114as the mapped-attribute exposed version of the column.115 116The column in this context needs to act as much like the117column in an ORM mapped context as possible, so includes118annotations to give hints to various ORM functions as to119the source entity of this column.   It also adapts it120to the mapper's with_polymorphic selectable if one is121present.122 123)�entity_namespacer��parentmapper�	proxy_key�adapt_column�orm)�compile_state_plugin�plugin_subject)�
_parententityr�ru�
_parentmapper�_polymorphic_adapter�traverse�	_annotate�_set_propagate_attrs)rlrm�perrp�mapper_local_cols      rq�_orm_annotate_column�.ColumnProperty.Comparator._orm_annotate_column�s����#�#�B�$&� "� "�!�Y�Y�]�]�	+�K��C��!�!�6�6�#&� ��(�(�=�=�F�F�s�K��124/?�N�+��=�=��-�B�B�).�"�E��
r�c��gr�r�r�s rqr��,ColumnProperty.Comparator.__clause_element__�s��cr�c���UR(a=URURRSURR5$UR	URRS5$rt��adapterr�rKrur�r�s rq�#_memoized_method___clause_element__�=ColumnProperty.Comparator._memoized_method___clause_element__�sS���|�|��|�|�D�I�I�$5�$5�a�$8�$�)�)�-�-�H�H��0�0����1B�1B�1�1E�F�Fr�c��UR5nUR$![a URRs$f=f)z(The .info dictionary for this attribute.)r�r\�AttributeErrorr�)rl�ces  rq�_memoized_attr_info�-ColumnProperty.Comparator._memoized_attr_info�s=���(�(�*�B�
&��w�w���!�
&��y�y�~�~�%�
&�s�� A�Ac�6�UR(aJURRVs/sH(nURXRR5PM* sn$URRVs/sHoR	U5PM sn$s snfs snf)z}The full sequence of columns referenced by this125attribute, adjusted for any aliasing in progress.126 127.. versionadded:: 1.3.17128 129r�)rlrps  rq�_memoized_attr_expressions�4ColumnProperty.Comparator._memoized_attr_expressions�s����|�|� $�y�y�0�0��0���L�L��i�i�m�m�4�0���?C�i�i�>O�>O��>O�s�-�-�c�2�>O������130s�/B�4Bc�6�[UR5U5$)zoproxy attribute access down to the mapped column.131 132this allows user-defined comparison methods to be accessed.133)rir�)rlrus  rq�_fallback_getattr�+ColumnProperty.Comparator._fallback_getattr�s��134�4�2�2�4�c�:�:r�c�6�U"UR5/UQ70UD6$r��r��rl�op�other�kwargss    rq�operate�!ColumnProperty.Comparator.operate�s"���d�-�-�/�B�%�B�6�B�Br�c�T�UR5nU"URX5U40UD6$r��r��_bind_param�rlr�r�r�rps     rq�reverse_operate�)ColumnProperty.Comparator.reverse_operate�s-���)�)�+�C��c�o�o�b�0�#�@��@�@r�r�N)rmrG�returnrG)rzNamedColumn[_PT])rr>)rr�)ru�strrr�r�rAr�rr�rrzColumnElement[Any])�__name__�135__module__�__qualname__�__firstlineno__�__doc__r
�	__slots__�__annotations__r�r�r�r�r�r�r�r�__static_attributes__r�r�rqrfr�cs���	�$�C�I�8�8�/�/�	�&	�P�A�	G�
�	G�	&�	�"	;�	C�"�	C�,/�	C�;>�	C�
�	C�136	A�"�	A�+.�	A�:=�	A�
�	Ar�rfc���UR(aUR(d[RU5$[	URR137R5S-UR-$)N�.)r�ru�object�__repr__rr�r	r�s rq�__str__�ColumnProperty.__str__�sG���{�{�$�(�(��?�?�4�(�(��4�;�;�%�%�.�.�/�#�5����@�@r�)138rTrKrPrRr]rUrQrSrZrk)rmz_ORMColumnExprArgument[_T]rnz_ORMColumnExprArgument[Any]r[zOptional[_AttributeOptions]rQrNrRrLrZrLrPz"Optional[Type[PropComparator[_T]]]rTrLrUrLr\zOptional[_InfoType]r]rNr^rLr_rL�rwr9rxr7ry�	Type[Any]rzrNrurr{zOptional[Type[Mapped[Any]]]r|�Optional[_AnnotationScanType]r}rr~rLr�None�rzOptional[MapperProperty[_T]]�rzList[Tuple[Column[Any], int]])rrL)rz _InstallLoaderCallableProto[Any])rzroles.ColumnsClauseRole)r�zMapper[Any]rr)rr)rzColumnProperty[_T])r�r;r��InstanceState[Any]r�r5r�rr�r5r�rLr�zDict[Any, object]r�z#Dict[_IdentityKeyType[Any], object]rr�rr)#r	r139rrr
r�
_COLUMN_TOKEN�strategy_wildcard_key�
inherit_cache�_links_to_entityrrrbr�propertyr�r�r�r%�preload_moduler�r�r�r�r�r�r�r��
MemoizedSlotsrrFrfrr�
__classcell__)res@rqrHrHas�����-�:�:���M����
#�#�#'�'�%�%�0�0��I�*:>�#���AE�$� $�$(�!� �/4�98�*�98�9�98�7�	98�140�98��
98��98�?�98��98��98�"�98��98��98�)-�98�98�v�)�� ���	�141*���
�6��2��&C��!��142��$�����143��144�145�146���/�1L�M�	147�	)�	148�N�	149�150���/�1L�M�	151�	)�	152�N�	153������*154155�� 156����)��#�	�157'��!�
���&�� C��158��4BA�T�'�'���)<�BA�HA�Ar�rHc��\rSrSrSrSrSrg)�MappedSQLExpressioni�a6Declarative front-end for the :class:`.ColumnProperty` class.159 160Public constructor is the :func:`_orm.column_property` function.161 162.. versionchanged:: 2.0 Added :class:`_orm.MappedSQLExpression` as163   a Declarative compatible subclass for :class:`_orm.ColumnProperty`.164 165.. seealso::166 167    :class:`.MappedColumn`168 169Tr�N)r	r170rrr
r!rr�r�rqr(r(�s����M�r�r(c��\rSrSr%SrSrS\S'S\S'S\S	'S171\S'S\S
'S\S'S SjrS!Sjr\	S"Sj5r172\	S#Sj5r\	S$Sj5rS%Sjr
S&SjrS&SjrS'SjrS(SjrS)Sjr\R("S5S*Sj5rS+SjrSrg),�MappedColumni�aCMaps a single :class:`_schema.Column` on a class.173 174:class:`_orm.MappedColumn` is a specialization of the175:class:`_orm.ColumnProperty` class and is oriented towards declarative176configuration.177 178To construct :class:`_orm.MappedColumn` objects, use the179:func:`_orm.mapped_column` constructor function.180 181.. versionadded:: 2.0182 183 184)
rmrV�_sort_order�foreign_keys�
_has_nullable�_has_insert_defaultrR�deferred_group�deferred_raiseloadrT�_attribute_options�_has_dataclass_arguments�_use_existing_columnzUnion[_NoArg, bool]rRrLr0rNr/�185Column[_T]rmzOptional[Set[ForeignKey]]r,rr1c�^�URS[5=UlmURSS5UlTSL=(a8 T[:g=(a( [	U4Sj[TR555UlURS[R5nU[RLUl186UR(aX2S'O,TR[RLaTRUS'URSS5UlURSS5Ul
URS	[R5UlURS187S5UlURS[R5Ul[#S[%U0UD65UlUR&R(UlS
U;=(a$ UR+S
5S[,R.4;Ul[2R4"U5 g)Nr[�use_existing_columnFc3�b># �UH$upUS:wdM
TU[RLv� M& g7f)�dataclasses_defaultN)r(�NO_ARG)�.0�i�attr�	attr_optss   �rq�	<genexpr>�(MappedColumn.__init__.<locals>.<genexpr>4s2�����;�G�A��0�0�2�	�!��F�M�M�1�;�s�/�/�insert_default�defaultr/r0rRrT�188sort_orderr4�nullable)�poprr1r3�any�	enumerate�_fieldsr2r(r9r.r8r/r0rRrTr+rr)rmr,�getr*�NULL_UNSPECIFIEDr-r%rj)rl�arg�kwr@r=s    @rqrb�MappedColumn.__init__*s����.0�f�f��!;�/189�	190���)�%'�F�F�+@�%�$H��!�
�T�!�
��7�7�
���(��):�):�;���	
�%���� 0�&�-�-�@��#1����#F�� ��#�#�*�y�M�
�
*�
*�&�-�-�
?�%�9�9�B�y�M� �f�f�%5�t�<���"$�&�&�)=�t�"D������z�6�=�=�9��
� �f�f�%5�u�=����6�6�,��
�
�>����<���);��);�<��� �K�K�4�4���'�2�-�191�"�&�&��2D���(�(�M192�3193���	
����%r�c�H�URRUR5nURR"S0UD6UlURUlUR194UlURUlURRUlURUlURUl	URUl195URUlURUlURUl
URUl[R "U5 U$)Nr�)re�__new__rm�_copyrRr/r0r,rTr-r1r.r2r3r+r%rj)rlrK�news   rqrO�MappedColumn._copyQs����n�n�$�$�T�^�^�4���[�[�&�&�,��,��196��}�}���!�0�0���!%�!8�!8����:�:�2�2���!�0�0��� �.�.���!%�!8�!8���"&�":�":���'+�'D�'D��$�#'�#<�#<�� ��*�*�������$��197r�c�.�URR$r�)rmrvr�s rqrv�MappedColumn.namebs���{�{���r�c	�B�URnU[RLa([UR=(d UR1985nU(dUR(a@[URUURUR199URURS9$g)N)rRrQrZr[rT)200rRr(r9rLr/r0rTrHrmr1)rl�effective_deferreds  rqr��&MappedColumn.mapper_property_to_assignfs���!�]�]������.�!%��#�#�>�t�'>�'>�"����!4�!4�!����+��)�)��1�1�"&�"9�"9�#�2�2�
�
�r�c�v�URUR[RLaUR4/$S4/$rt)rmr+r(r9r�s rqr��MappedColumn.columns_to_assignzsM������'�'�v�}�}�<��$�$�
�	201�		202��
�	203�		204r�c��UR$r�)rmr�s rqr��MappedColumn.__clause_element__�s���{�{�r�c�6�U"UR5/UQ70UD6$r�r�r�s    rqr��MappedColumn.operate�s"���$�)�)�+�>�e�>�v�>�>r�c�T�UR5nU"URX5U40UD6$r�rrs     rqr�MappedColumn.reverse_operate�s-���%�%�'���#�/�/�"�,�c�<�V�<�<r�c��[5$r�)r*r�s rq�found_in_pep593_annotated�&MappedColumn.found_in_pep593_annotated�s���~�r�c�f�UR(a�UR(a�UR(a}UR(a[R205"S5e[
URS5nURbUROUnURRRXS5nU$)Nz3Can't use use_existing_column with deferred mappersF)r3�inherits�single�is_deferred�sa_exc�
ArgumentErrorrrv�local_tablerorH)rlrwru�given_column�supercls_mapper�colnames      rq�_adjust_for_existing_column�(MappedColumn._adjust_for_existing_column�s���
�%�%��"�"�� � ��$�$��*�*�I���+�9�+=�+=�u�E�O�&2�%6�%6�%B��!�!��
�+�6�6�8�8�<�<���L��r�c206�t�URn207URXUR5=o�lU208RcXZlU209RcXZlU210RnUc?UR211(a-URR(dURXS5 OgURUUUUUU5 gr�)	rmrlrurv�type�_isnullr,�_raise_for_required�_init_column_for_annotation)rlrwrxryrzrur{r|r}r~rm�sqltypes            rqr�MappedColumn.declarative_scan�s�������#�?�?��D�K�K� 212�	213����:�:���J��;�;���K��+�+��&�.����t�{�{�'?�'?��(�(��2���(�(�����'��
	214r�zsqlalchemy.orm.decl_basec��[RRnURX`R5 URX1XRXt5 gr�)r%r��
orm_decl_base�_undefer_column_namermrr)	rlrwrxryrzru�215param_name�param_annotation�	decl_bases	         rq�declarative_scan_for_composite�+MappedColumn.declarative_scan_for_composite�s;���N�N�0�0�	��&�&�z�;�;�?��(�(��C�+;�	216r�c��217�URRn[USSS9(aUce[XUSS9n[	U5nUR218(dX�RlSn	Sn219SnSn[U5n
[U
5(a-U
n[UR5n
[U5nU(aX�n
[U
5(a)Sn220[U
5nUSnU(a[U5nUSSn	U	Hn[U[5(dMUn O SnUGb�URX#UR5UlUR(d(URR bSURlURR#UR5 URRnUR$[&R(La.UR$[&R(LaUR$UlUR*bUR*cUR*UlUR,bUR,cUR,UlUR.(aUR.(dSUlUR0(aUR0UlUR2b.UR2[&R(LaUR2UlURR4cURR6b[8R:"SS	5 UR<(ax[?UR@RB5HUunnUR@U[&R(LdM(URES221S5n[8R:"SUS
3S	5 MW URF(Ga�URRH(Gd�U222(aX�/nOU
/nUbURKSU5 UHnURMUUU
LS9nUcM GO= [U
[N5(d*[U
[5(aG[QU
[N5(a2[RRT"SURR4<SU
S35e[WUS5(a�[YU5S:XaSnO;[YU5S:XaSUSSUSS3nOSSR[SU55S3n[RRT"SUSSURR4<SU35e[RRT"SURR4<SU<S 35eURR]U5 ggg)!NT)�
check_generic�check_for_plain_string)�include_genericr�Frrz_Can't use the 'key' or 'name' arguments in Annotated with mapped_column(); this will be ignoredz2.0.22�dataclasses_�z223Argument 'zp' is a dataclass argument and cannot be specified within a mapped_column() bundled inside of an Annotated object)�
_do_fallbackszThe type provided inside the z4 attribute Mapped annotation is the SQLAlchemy type z . Expected a Python type insteadz1the type object is not resolvable by the registryr"z	neither 'z' nor 'z ' are resolvable by the registryznone of z, c3�.# �UHnSUS3v� M
 g7f)�'Nr�)r:�ts  rqr>�;MappedColumn._init_column_for_annotation.<locals>.<genexpr>�s���)C�F�q�A�a�S��(�F�s�z are resolvable by the registryzSCould not locate SQLAlchemy Core type when resolving for Python type indicated by 'z)' inside the Mapped[] annotation for the z attribute; zThe object provided inside the zC attribute Mapped annotation is not a Python type, it's the object z. Expected a Python type.)/rmror0r!r.r-rCr,r2�	__value__r-r1r�r*rlr.rA�_mergerRr(r9r/r0r3rTr+rurvr%�warn_deprecatedr2rFr1rG�replacerpr,�insert�
_resolve_typer+�224issubclass�orm_exc�MappedAnnotationErrorr/r��join�	_set_type)rlryrwrurx�argumentrzrsrC�find_mapped_in�our_type_is_pep593�raw_pep_593_type�raw_pep_695_type�our_type�our_args�pep_593_components�elem�
use_args_from�idxrJ�checks�225check_type�new_sqltype�details                        rqrr�(MappedColumn._init_column_for_annotation�s+���+�+�"�"����D��226�&�1�1�1�.��1�4��H�!��*���!�!�#+�K�K� �*,��"������2�8�<���X���'��1�2B�2L�2L�M�H�� 0�1�H��#�-���X���!%��!)�(�!3��1�!�4���#=�>N�#O� �/���3�N�#�D��$��-�-� $�
��#�227!�M��$�'�C�C������D�K�228�,�,�!�(�(�0�0�<�&*����#�� � �'�'����4��k�k�&�&�G��&�&�f�m�m�;��M�M�V�]�]�2� -� 6� 6��
��,�,�8��'�'�/�&3�&B�&B��#��0�0�<��+�+�3�*7�*J�*J��'��2�2��1�1�,0��)��+�+�&3�&B�&B��#��)�)�5��$�$��
�
�5�#0�#<�#<�� ��$�$�(�(�4� �'�'�,�,�8��$�$�K����5�5� )�!�4�4�<�<�!�H�C��&�8�8��=�%�}�}�-�"�k�k�.�"�=���,�,�(���.D�D�%�	�!��?�?�?�4�;�;�#;�#;�#;�!�"�5��"����+��
�
�a�!1�2�$�229�&�4�4��j�H�.D�5����*��%��h�230�3�3��x��.�.�"�8�Z�8�8�!�7�7�7������7J�KN�#�*�$D�F���231�v�a�y�)�)��6�{�a�'�O���V���)�'��q�	�{�'�&��)��E=�=��!)� $�	�	�)C�F�)C� C�)�=�=��"�7�7�9�9?����D7�7;�{�{���6I�J&�&,�X�	/���"�7�7�9�$�+�+�/�/�9L�M+�+3�,�7 � ���
�K�K�!�!�+�.�u$<�?r�)r1r2r.r-r+r3rTrmrRr/r0r,N)rJrrKr)rKrrr3rrr)rr4r)rr)rwr9rurrir4rr4r)rwr9rxr7ryrrzrNrurrxrryrBrr)ryrrwr9rurrxr7r�rBrzrNrr)r	r232rrr
rrrbrOr#rvr�r�r�r�rr`rlrr%r$r{rrrr�r�rqr*r*�s"��233��I� "�!���!�!���+�+�)�)�%&�N�"� �� �����&�234235��236237��?��?�(+�?�7:�?�	�?�238=��=�'*�=�69�=�	�=��239�)����!�	�240241��2&242�)�&243� �&244��	&245�246*�&247��
&248�6�&249�2�&250�&C�&251�!�&252�253�&254�P255���3�4�256�)�257� �258��	259�260*�261��
262��263�.�264�265�266�5�267� {/�
�{/�*�{/��	{/�268 �{/�&�
{/�*�{/�269�{/r�r*N)_r
�270__future__r�typingrrrrrr	r271rrr
rrr�rrr�r�baserr�descriptor_propsrrr�272interfacesrrrrrrr�
relationshipsr r%r!rfr#r$�sqlr&r'�sql.baser(�273sql.schemar)r*�sql.type_apir+�util.typingr,r-r.r/r0r1r2r3�_typingr4r5r6r7r8rzr9r�r:r�r;r�r<r=�sql._typingr>�sql.elementsr?r@�
sql.operatorsrArBrCrDrFrG�__all__�class_logger�274IdentifiedrHr(r*r�r�rq�<module>r�ss���#���������� ������$��/�7�-�)�2�/�$�&�&�+�/�)���������$�%�4�"�'�#�$�#�#���)�&�/�&��1�� �2�$�'�,�*�,�1�3��T����
�e�3���
�e�-�.�������HA���������N�N�	HA��HA�V�.��,�.@��.D��$h/������r��h/r�
codekingpro/portable-devtools · Team Ai