Skip to main content
Glama

ClickUp Operator

by noah-vh
exceptions.cpython-312.pyc14.7 kB
� �MMg9$����ddlZddlmZddlmZddlmZddlmZddlm Z ejrddl m Z dd l m Z dd l mZd ejej ej"eefd ejefd �ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd �d!e�Zy)"�N)�gettext)�ngettext�)�get_text_stderr)�echo)�format_filename)�Command)�Context)� Parameter� param_hint�returnc�Z�|�(t|t�sdjd�|D��S|S)Nz / c3�2K�|]}t|����y�w�N)�repr)�.0�xs �\C:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\click/exceptions.py� <genexpr>z$_join_param_hints.<locals>.<genexpr>s����6�:�a�$�q�'�:�s�)� isinstance�str�join)r s r�_join_param_hintsrs.����j��S�&A��z�z�6�:�6�6�6� ��c���eZdZdZdZdeddf�fd� Zdefd�Zdefd�Zd d e je je jddfd �Z �xZS) �ClickExceptionz8An exception that Click can handle and show to the user.r�messager Nc�2��t�|�|�||_yr)�super�__init__r)�selfr� __class__s �rr zClickException.__init__s��� ����!��� rc��|jSr�r�r!s r�format_messagezClickException.format_message"� ���|�|�rc��|jSrr$r%s r�__str__zClickException.__str__%r'r�filec��|� t�}ttd�j|j ���|��y)N�Error: {message}r$)r*)rr�_�formatr&)r!r*s r�showzClickException.show(s6�� �<�"�$�D� �Q�!� "� )� )�$�2E�2E�2G� )� H�t�Trr)�__name__� __module__� __qualname__�__doc__� exit_coderr r&r)�t�Optional�IO�Anyr/� __classcell__�r"s@rrrsc���B��I������������U����A�D�D����K�0�U�D�Urrc���eZdZdZdZd dedejdddf�fd� Zd d ejejejddfd �Z �xZ S) � UsageErrora+An internal exception that signals a usage error. This typically aborts any further handling. :param message: the error message to display. :param ctx: optionally the context that caused this error. Click will fill in the context automatically in some situations. �Nr�ctxr r c���t�|�|�||_|jr|jj|_yd|_yr)rr r>�command�cmd)r!rr>r"s �rr zUsageError.__init__:s4��� ����!����>B�h�h�$�(�(�*:�*:���D��rr*c�6�|� t�}d}d}|j�{|jjj|j��Lt d�j |jj |jjd��}|�d�}|j�A|jj}t|jj��d|��||��tt d�j |j���||��y) N�z"Try '{command} {option}' for help.r)r@�option� )r*�colorr,r$) rr>r@�get_help_optionr-r.� command_path�help_option_namesrFr� get_usager&)r!r*rF�hints rr/zUsageError.show?s��� �<�"�$�D����� �H�H� ���� � �0�0����:�F��9�:�A�A����-�-�d�h�h�6P�6P�QR�6S�B��D��V�2�;�D� �8�8� ��H�H�N�N�E� �D�H�H�&�&�(�)��D�6�2��U� K� � � � !� (� (��1D�1D�1F� (� G��� rr) r0r1r2r3r4rr5r6r r7r8r/r9r:s@rr<r</s^�����I�Q��Q�!�*�*�Y�*?�Q�4�Q�  ����A�D�D����K�0� �D� rr<c ���eZdZdZ d dedej ddej ddej ed df �fd � Zd efd �Z�xZ S) � BadParametera An exception that formats out a standardized error message for a bad parameter. This is useful when thrown from a callback or type as Click will attach contextual information to it (for instance, which parameter it is). .. versionadded:: 2.0 :param param: the parameter object that caused this error. This can be left out, and Click will attach this info itself if possible. :param param_hint: a string that shows up as parameter name. This can be used as alternative to `param` in cases where custom validation should happen. If it is a string it's used as such, if it's a list then each item is quoted and separated. Nrr>r �paramr r r c�B��t�|�||�||_||_yr)rr rNr )r!rr>rNr r"s �rr zBadParameter.__init__hs"��� ����#�&��� �$��rc�@�|j� |j}nW|j�&|jj|j�}n%t d�j |j ��St d�j t|�|j ��S)NzInvalid value: {message}r$z)Invalid value for {param_hint}: {message})r r)r rN�get_error_hintr>r-r.rr)r!r s rr&zBadParameter.format_messagess��� �?�?� &����J� �Z�Z� #����2�2�4�8�8�<�J��/�0�7�7�� � �7�M� M��<�=�D�D�(��4�d�l�l�E� � r�NNN� r0r1r2r3rr5r6r r&r9r:s@rrMrMVsn����(&*�)-�&*� %�� %��Z�Z� � "� %��z�z�+�&� %� �J�J�s�O� %� � %�  ��  rrMc ����eZdZdZ ddej edej ddej ddej ed ej ed df �fd � Zd efd �Zd efd �Z �xZ S)�MissingParametera�Raised if click required an option or argument but it was not provided when invoking the script. .. versionadded:: 4.0 :param param_type: a string that indicates the type of the parameter. The default is to inherit the parameter type from the given `param`. Valid values are ``'parameter'``, ``'option'`` or ``'argument'``. Nrr>r rNr r � param_typer c�@��t�|�|xsd|||�||_y)NrC)rr rV)r!rr>rNr rVr"s �rr zMissingParameter.__init__�s#��� �����B��U�J�?�$��rc��|j� |j}n4|j�&|jj|j�}nd}t |�}|rd|��nd}|j }|�"|j�|jj }|j}|j�>|jjj|j�}|r |r |d|��z }n|}|rd|��nd}|dk(r td�}n=|dk(r td�}n,|dk(r td �}ntd �j|� �}|�|�d |��S) N� rCz. �argumentzMissing argumentrDzMissing option� parameterzMissing parameterzMissing {param_type})rV�.) r rNrQr>rrV�param_type_namer�type�get_missing_messager-r.)r!r rV�msg� msg_extra�missings rr&zMissingParameter.format_message�s@�� �?�?� &�*.�/�/�J� �Z�Z� #����2�2�4�8�8�<�J��J�&�z�2� �)3�q�� �%�� ��_�_� � � �$�*�*�"8����3�3�J��l�l�� �:�:� !�� � ���;�;�D�J�J�G�I����R� �{�+�+�C�#�C���#��i�B�� �� #��*�+�G� �8� #��(�)�G� �;� &��+�,�G��.�/�6�6�*�6�M�G���:�,�a��u�-�-rc��|js?|jr|jjnd}td�j |��S|jS)NzMissing parameter: {param_name})� param_name)rrN�namer-r.)r!rds rr)zMissingParameter.__str__�sB���|�|�,0�J�J������D�J��6�7�>�>�*�>�U� U��<�<� r)NNNNN) r0r1r2r3r5r6rr r&r)r9r:s@rrUrU�s���� �$(�%)�)-�&*�&*� %����C�� %��Z�Z� � "� %��z�z�+�&� %� �J�J�s�O� %� �J�J�s�O� %� � %�$.��$.�L �� rrUc ���eZdZdZ d dedej edej ejedej dddf �fd � Zdefd �Z �xZ S) � NoSuchOptionzfRaised if click attempted to handle an option that does not exist. .. versionadded:: 4.0 N� option_namer� possibilitiesr>r r c�|��|�td�j|��}t�|� ||�||_||_y)NzNo such option: {name})re)r-r.rr rhri)r!rhrrir>r"s �rr zNoSuchOption.__init__�sB��� �?��0�1�8�8�k�8�J�G� ����#�&�&���*��rc���|js |jSdjt|j��}t ddt |j��j ||��}|j�d|��S)Nz, zDid you mean {possibility}?z#(Possible options: {possibilities}))� possibilityrirY)rirr�sortedr�lenr.)r!�possibility_str�suggests rr&zNoSuchOption.format_message�sv���!�!��<�<� ��)�)�F�4�+=�+=�$>�?��� )� 1� ��"�"� #� � �&�_�O�&� L� � �,�,��q�� �*�*rrR) r0r1r2r3rr5r6�Sequencer r&r9r:s@rrgrg�sv����$(�59�%)� +�� +����C�� +��z�z�!�*�*�S�/�2� +� �Z�Z� � "� +� � +� +�� +rrgc �R��eZdZdZ d dededej dddf�fd� Z�xZS) �BadOptionUsageaRaised if an option is generally supplied but the use of the option was incorrect. This is for instance raised if the number of arguments for an option is not correct. .. versionadded:: 4.0 :param option_name: the name of the option being used incorrectly. Nrhrr>r r c�4��t�|�||�||_yr)rr rh)r!rhrr>r"s �rr zBadOptionUsage.__init__�s��� ����#�&�&��rr) r0r1r2r3rr5r6r r9r:s@rrsrs�sB����LP�'��'�),�'�34�:�:�i�3H�'� �'�'rrsc��eZdZdZy)�BadArgumentUsagez�Raised if an argument is generally supplied but the use of the argument was incorrect. This is for instance raised if the number of values for an argument is not correct. .. versionadded:: 6.0 N�r0r1r2r3�rrrvrv�s��rrvc�X��eZdZdZddedej eddf�fd� Zdefd�Z�xZ S) � FileErrorz"Raised if a file cannot be opened.N�filenamerKr c�l��|� td�}t�|� |�t|�|_||_y)Nz unknown error)r-rr r� ui_filenamer{)r!r{rKr"s �rr zFileError.__init__s3��� �<��_�%�D� ����� /�� 9��� �� rc�b�td�j|j|j��S)Nz+Could not open file {filename!r}: {message})r{r)r-r.r}rr%s rr&zFileError.format_message s0���>�?�F�F��%�%�t�|�|�G� � rrrSr:s@rrzrzs4���,�!��!�A�J�J�s�O�!�t�!� �� rrzc��eZdZdZy)�Abortz=An internal signalling exception that signals Click to abort.Nrwrxrrr�r�s��Grr�c�&�eZdZdZdZddeddfd�Zy)�Exitz�An exception that indicates that the application should exit with some status code. :param code: the status code to exit with. �r4�coder Nc��||_yrr�)r!r�s rr z Exit.__init__s ��"��r)r)r0r1r2r3� __slots__�intr rxrrr�r�s!��� �I�#�S�#��#rr�) �typingr5rr-r�_compatr�utilsrr� TYPE_CHECKING�corer r r r6�Unionrqrr� Exceptionrr<rMrUrgrsrvrz� RuntimeErrorr�r�rxrr�<module>r�s���� ��$��"��?�?������ � �1�7�7�1�:�:�c�?�C�#7�8�9���Z�Z��_��U�Y�U�.$ ��$ �N' �:�' �TB �|�B �J+�:�+�D'�Z�'�"�z�� �� �"H�L�H� #�<� #r

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server