ᡎb d Z ddlZddlZddlZddlmZ ej ej d Z ed ed dS )a
These transforms replace the Django types with adapted versions to provide
additional typing and method inference to pylint. All of these transforms
are considered "global" to pylint-django, in that all checks and improvements
requre them to be loaded. Additional transforms specific to checkers are loaded
by the checker rather than here.
For example, the ForeignKeyStringsChecker loads the foreignkey.py transforms
itself as it may be disabled independently of the rest of pylint-django
N)fieldsc R fd}t j t j | d S )Nc t j t j t d } t j dd }t j | | d }t |d 5 }| }ddd n# 1 swxY w Y t j
t j
| S )a:
Build a fake module to use within transformations.
@package_name is a parameter from the outer scope b/c according to
the docs this can't receive any parameters.
http://pylint.pycqa.org/projects/astroid/en/latest/extending.html?highlight=MANAGER#module-extender-transforms
transformsz\._z.pyzutf-8)encodingN)ospathjoindirname__file__resubopenreadastroidbuilderAstroidBuilderMANAGERstring_build)transforms_dirtransformed_namefake_module_path
modulefilefake_modulepackage_names s/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint_django/transforms/__init__.pyfake_module_builderz+_add_transform.