§ ‘¢bg· ãó‚—dZddlmZddlmZddlmZddlmZddl m Z m Z m Z erddl mZGd„d e¦«Zdd„ZdS)zmChecker for features used that are not supported by all python versions indicated by the py-version setting. é)Ú annotations)Ú TYPE_CHECKING)Únodes)Ú BaseChecker)Úonly_required_for_messagesÚ safe_inferÚuninferable_final_decorators)ÚPyLintercó„—eZdZdZdZdddœZdd„Zed ¦«dd „¦«Zed ¦«dd„¦«Z dd„Z dS)ÚUnsupportedVersionCheckerzpChecker for features that are not supported by all python versions indicated by the py-version setting. Úunsupported_version)zNF-strings are not supported by all versions included in the py-version settingú%using-f-string-in-unsupported-versionz\Used when the py-version set by the user is lower than 3.6 and pylint encounters a f-string.)zPtyping.final is not supported by all versions included in the py-version settingú,using-final-decorator-in-unsupported-versionznUsed when the py-version set by the user is lower than 3.8 and pylint encounters a ``typing.final`` decorator.)ÚW2601ÚW2602ÚreturnÚNonecóT—|jjj}|dk|_|dk|_dS)z*Initialize visit variables and statistics.)éé)réN)ÚlinterÚconfigÚ py_versionÚ _py36_plusÚ _py38_plus)Úselfrs út/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/checkers/unsupported_version.pyÚopenzUnsupportedVersionChecker.open/s+€à”[Ô'Ô2ˆ Ø$¨Ò.ˆŒØ$¨Ò.ˆŒˆˆórÚnodeúnodes.JoinedStrcóF—|js| d|¬¦«dSdS)zCheck f-strings.r©r!N)rÚ add_message©rr!s rÚvisit_joinedstrz)UnsupportedVersionChecker.visit_joinedstr5s;€ðŒð QØ × Ò ÐDÈ4Ð Ñ PÔ PÐ PÐ PÐ Pð Qð Qr rúnodes.Decoratorscó0—| |¦«dS)zCheck decorators.N)Ú_check_typing_finalr&s rÚvisit_decoratorsz*UnsupportedVersionChecker.visit_decorators;s€ð × Ò  Ñ&Ô&Ð&Ð&Ð&r có—|jrdSg}| ¦«D]@}t|¦«}|r-| ¦«dkr| |¦«ŒA|pt |¦«D]}| d|¬¦«ŒdS)znAdd a message when the `typing.final` decorator is used and the py-version is lower than 3.8. Nz typing.finalrr$)rÚ get_childrenrÚqnameÚappendr r%)rr!Ú decoratorsÚ decoratorÚinferreds rr*z-UnsupportedVersionChecker._check_typing_final@s¿€ð Œ?ð Ø ˆFàˆ Ø×*Ò*Ñ,Ô,ð -ð -ˆIÝ! )Ñ,Ô,ˆHØð -˜HŸNšNÑ,Ô,°Ò>Ð>Ø×!Ò! )Ñ,Ô,Ð,øà#ÐIÕ'CÀDÑ'IÔ'Ið ð ˆIØ × Ò Ø>ÀYð ñ ô ð ð ð ð r N)rr)r!r"rr)r!r(rr) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚnameÚmsgsrrr'r+r*©r rr r sÀ€€€€ððð !€Dð ð  ð ð €Dð/ð/ð/ð/ð  ÐÐ GÑHÔHðQðQðQñIÔHðQð  ÐÐ NÑOÔOð'ð'ð'ñPÔOð'ððððððr r rr rrcóJ—| t|¦«¦«dS)N)Úregister_checkerr )rs rÚregisterr<Ss%€Ø ×ÒÕ5°fÑ=Ô=Ñ>Ô>Ð>Ð>Ð>r N)rr rr)r6Ú __future__rÚtypingrÚastroidrÚpylint.checkersrÚpylint.checkers.utilsrrr Ú pylint.lintr r r<r9r rúrCsððð ðð#Ð"Ð"Ð"Ð"Ð"à Ð Ð Ð Ð Ð àÐÐÐÐÐà'Ð'Ð'Ð'Ð'Ð'ððððððððððð ð%Ø$Ð$Ð$Ð$Ð$Ð$ð6ð6ð6ð6ð6  ñ6ô6ð6ðr?ð?ð?ð?ð?ð?r