MrBDօ d dl Z ddlmZ ddlmZ ddlmZ ddlmZ G d de Z G d d e Z G d de Z dS ) N ) attributes)util )excc e Zd Zd Zd Zd Zd Zd Zd Zd Z d Z d Zd Zd Z d Zd Zd ZddZd Zd Zd Zd ZdS )IdentityMapc l i | _ t | _ t j | | _ d S N)_dictset _modifiedweakrefref_wrselfs k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/sqlalchemy/orm/identity.py__init__zIdentityMap.__init__ s) ;t$$ c 4 | j S r )r keysr s r r zIdentityMap.keys s z r c t r NotImplementedErrorr states r replacezIdentityMap.replace !###r c t r r r s r addzIdentityMap.add r r c 0 | | dS )zUoptional inlined form of add() which can assume item isn't present in the mapN)r! r r keys r _add_unpresentzIdentityMap._add_unpresent s r c t d Nz%IdentityMap uses add() to insert datar )r dict_s r updatezIdentityMap.update$ !"IJJJr c t d Nz(IdentityMap uses remove() to remove datar r s r clearzIdentityMap.clear' !"LMMMr c d | j |_ |j r| j | d S d S r )r _instance_dictmodifiedr r! r s r _manage_incoming_statez"IdentityMap._manage_incoming_state* s<