Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current none :
/
lib
/
python3
/
dist-packages
/
click
/
__pycache__
/
Or
Select Your none :
Upload File :
New :
File
Dir
//lib/python3/dist-packages/click/__pycache__/types.cpython-38.pyc
U L�[�Z � @ s� d dl Z d dlZd dlmZ ddlmZmZmZmZmZm Z m Z ddlmZ ddl mZmZ G dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e�ZG d%d&� d&e�Z d)d'd(�Z!e� Z"e� Z#e� Z$e� Z%e� Z&e� Z'dS )*� N)�datetime� )�open_stream� text_type�filename_to_ui�get_filesystem_encoding� get_streerror�_get_argv_encoding�PY2��BadParameter)�safecall�LazyFilec @ sP e Zd ZdZdZdZdZddd�Zdd� Zdd � Z d d� Z dd � Zddd�ZdS )� ParamTypea� Helper for converting values through types. The following is necessary for a valid type: * it needs a name * it needs to pass through None unchanged * it needs to convert from a string * it needs to convert its result type through unchanged (eg: needs to be idempotent) * it needs to be able to deal with param and context being `None`. This can be the case when the object is used with prompt inputs. FNc C s |d k r| � |||�S d S �N)�convert��self�value�param�ctx� r �-/usr/lib/python3/dist-packages/click/types.py�__call__% s zParamType.__call__c C s dS )z>Returns the metavar default for this param if it provides one.Nr �r r r r r �get_metavar) s zParamType.get_metavarc C s dS )ztOptionally might return extra information about a missing parameter. .. versionadded:: 2.0 Nr r r r r �get_missing_message, s zParamType.get_missing_messagec C s |S )ziConverts the value. This is not invoked for values that are `None` (the missing value). r r r r r r 3 s zParamType.convertc C s |pd� | j�S )au Given a value from an environment variable this splits it up into small chunks depending on the defined envvar list splitter. If the splitter is set to `None`, which means that whitespace splits, then leading and trailing whitespace is ignored. Otherwise, leading and trailing splitters usually lead to empty items being included. � )�split�envvar_list_splitter�r �rvr r r �split_envvar_value9 s zParamType.split_envvar_valuec C s t |||d��dS )z4Helper method to fail with an invalid value message.�r r Nr )r �messager r r r r �failC s zParamType.fail)NN)NN) �__name__� __module__�__qualname__�__doc__�is_composite�namer r r r r r"