Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
main.cpython-313.pyc29 linesDownload Raw Back to __pycache__
1�

2�j3���"SS5rg)c�X�\rSrSrSrS\SS4SjrS\4SjrS\4Sjr	S	\3S\4S4jrSr
g)�Doc�a<Define the documentation of a type annotation using `Annotated`, to be5    used in class attributes, function and method parameters, return values,6    and variables.7 8The value should be a positional-only string literal to allow static tools9like editors and documentation generators to use it.10 11This complements docstrings.12 13The string value passed is available in the attribute `documentation`.14 15Example:16 17```Python18from typing import Annotated19from annotated_doc import Doc20 21def hi(name: Annotated[str, Doc("Who to say hi to")]) -> None:22    print(f"Hi, {name}!")23```24�
documentation�returnNc��Xlg�N�r)�selfrs  �XD:\code\apps\devtools\python\user_packages\Python313\site-packages\annotated_doc/main.py�__init__�Doc.__init__s��*��c�$�SUR<S3$)NzDoc(�)r	�r25s r�__repr__�Doc.__repr__s���d�(�(�+�1�-�-rc�,�[UR5$r)�hashrrs r�__hash__�Doc.__hash__s���D�&�&�'�'r�otherc�j�[U[5(d[$URUR:H$r)�26isinstancer�NotImplementedr)r27rs  r�__eq__�28Doc.__eq__!s,���%��%�%�!�!��!�!�U�%8�%8�8�8rr	)�__name__�29__module__�__qualname__�__firstlineno__�__doc__�strrr�intr�object�boolr�__static_attributes__�rrrrsE���,+�c�+��+�.�#�.�(�#�(�9�F�9�t�9rrN)rr(rr�<module>r)s��#9�#9r
codekingpro/portable-devtools · Team Ai