OwlCyberSecurity - MANAGER
Edit File: preloaded.cpython-312.pyc
� ̓�g � �� � d Z ddlmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ eded ef � � Z e�r ddl mZ ddl m Z dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm!Z" ddlm#Z$ ddlm%Z& ddlm'Z( ddlm)Z* ddlm+Z, ddlm-Z. ddlm/Z0 ddlm1Z2 ddlm3Z4 ddlm5Z6 dd lm7Z8 dd!l9m:Z; dd"l9m<Z= dd#l9m>Z? dd$l9m@ZA dd%l9mBZC dd&l9mDZE dd'l9mFZG dd(l9mHZI dd)l9mJZK dd l9m7ZL eZeZMeZNeZOeZPeZQe ZReZSeZ eZTe"ZUe$ZVe(ZWe&ZXe*ZYe,ZZe.Z[e0Z\e4Z]e6Z^e2Z_e8Z`e;Zae=Zbe?ZceAZdeCZeeGZfeKZgeEZheIZieLZj G d*� d+� Zk ek� Zlelj� Zmelj� Zny),zRsupplies the "preloaded" registry to resolve circular module imports at runtime. � )�annotationsN)�Any)�Callable)� TYPE_CHECKING)�TypeVar�_FN.)�bound)�dialects)�orm)�cursor)�default)� reflection)�result)�url)� attributes)�base)�clsregistry)�decl_api)� decl_base)� dependency)�descriptor_props)� mapperlib)� properties)� relationships)�session)�state)� strategies)�strategy_options)�util)�default_comparator)�dml)�elements)� functions)�naming)�schema)� selectable)�sqltypes)� traversalsc �( � e Zd ZdZdd�Zdd�Zdd�Zy) �_ModuleRegistrya� Registry of modules to load in a package init file. To avoid potential thread safety issues for imports that are deferred in a function, like https://bugs.python.org/issue38884, these modules are added to the system module cache by importing them after the packages has finished initialization. A global instance is provided under the name :attr:`.preloaded`. Use the function :func:`.preload_module` to register modules to load and :meth:`.import_prefix` to load all the modules that start with the given path. While the modules are loaded in the global module cache, it's advisable to access them using :attr:`.preloaded` to ensure that it was actually registered. Each registered module is added to the instance ``__dict__`` in the form `<package>_<module>`, omitting ``sqlalchemy`` from the package name. Example: ``sqlalchemy.sql.util`` becomes ``preloaded.sql_util``. c �0 � t � | _ || _ y �N)�set�module_registry�prefix)�selfr/ s �J/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/util/preloaded.py�__init__z_ModuleRegistry.__init__r s � �"�u������ c �>