ᡎbdZddlZddlZddlZddlmZejejdZededdS)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)fieldscRfd}tjtj|dS)Nctjtjtd}t jdd}tj||d}t|d5}|}dddn #1swxYwYtj tj  |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__resubopenreadastroidbuilderAstroidBuilderMANAGER string_build)transforms_dirtransformed_namefake_module_path modulefile fake_module package_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..fake_module_buildersbgooh&?&?NN6%l;;7<<;K8P8P8PQQ "W 5 5 5 ,$//++K , , , , , , , , , , , , , , ,--go>>KKKXXXsB//B36B3)rregister_module_extenderr)rrs` r_add_transformr sAYYYYY  $W_lDWXXXXXzdjango.utils.translationzdjango.db.models.fields.files) __doc__r rrpylint_django.transformsradd_transformsrr r!rr&s   ++++++go&&&YYY()***./////r!