sendgrid / sendgrid-python

The Official Twilio SendGrid Python API Library
https://sendgrid.com
MIT License
1.53k stars 712 forks source link

Delete request to the global suppression group raises a syntax error #1038

Open m-reidy opened 2 years ago

m-reidy commented 2 years ago

Issue Summary

Following the API reference guide for Python to delete an entry in the global suppression group raises a syntax error.

(https://docs.sendgrid.com/api-reference/suppressions-global-suppressions/delete-a-global-suppression)

The following line of code contains a name which conflicts with the global builtin - raising an uncontrolled exception.

response = sg.client.asm.suppressions.global._(email).delete()

Steps to Reproduce

Attempt to make a call to the API as directed.

Technical details:

Running Django 3.2.8 / Python 3.10 / latest sendgrid-python version

childish-sambino commented 2 years ago

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.