mffddlZddlZddlmZddlmZmZer ddlmZm Z m Z Gdde Z dS)N)MYPY)Item PayloadRef)OptionalUnionCallablec,eZdZ ddZdZdZdS) AttachmentNFc||td|!|tj|}|td|t j|d}||_||_||_||_||_ dS)Nz)path or raw bytes required for attachmentz#filename is required for attachmentr) TypeErrorospathbasename mimetypes guess_typebytesfilename content_typeadd_to_transactions)selfrrrrrs M/opt/imunify360/venv/lib64/python3.11/site-packages/sentry_sdk/attachments.py__init__zAttachment.__init__ s =T\GHH H   0w''--H  ABB B  $/99!)r)rs r__repr__zAttachment.__repr__5s$(MMM33r)NNNNF)__name__ __module__ __qualname__rrr"rrr r sW ! 7777.   $44444rr ) r rsentry_sdk._typesrsentry_sdk.enveloperrtypingrrrobjectr r&rrr+s """"""0000000010000000000,4,4,4,4,4,4,4,4,4,4r