René's URL Explorer Experiment


Title: Attempt to fix issues in sendgrid/helpers/mail/mail.py by galihmelon · Pull Request #496 · sendgrid/sendgrid-python · GitHub

Open Graph Title: Attempt to fix issues in sendgrid/helpers/mail/mail.py by galihmelon · Pull Request #496 · sendgrid/sendgrid-python

X Title: Attempt to fix issues in sendgrid/helpers/mail/mail.py by galihmelon · Pull Request #496 · sendgrid/sendgrid-python

Description: Fixes Fixes #457 Fixes #458 Checklist I have made a material change to the repo (functionality, testing, spelling, grammar) I have read the [Contribution Guide] and my PR follows them. I update...

Open Graph Description: Fixes Fixes #457 Fixes #458 Checklist I have made a material change to the repo (functionality, testing, spelling, grammar) I have read the [Contribution Guide] and my PR follows them. I update...

X Description: Fixes Fixes #457 Fixes #458 Checklist I have made a material change to the repo (functionality, testing, spelling, grammar) I have read the [Contribution Guide] and my PR follows them. I update...

Opengraph URL: https://github.com/sendgrid/sendgrid-python/pull/496

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:00d84446-44a5-b260-7d0e-4d3839a913af
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB6C0:380F1C:3201D2C:468D4F8:69791705
html-safe-noncea8352d36132d0e5729398a47598a4861213f824095ab9d5863229289100f584c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkMwOjM4MEYxQzozMjAxRDJDOjQ2OEQ0Rjg6Njk3OTE3MDUiLCJ2aXNpdG9yX2lkIjoiNzUyOTc5ODk5NDIzNTAzNzQ0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac07bddd52b660b5235ee7bb3b65548496be42987e2eea68ca7d800c64825567a2
hovercard-subject-tagpull_request:149411384
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sendgrid/sendgrid-python/496/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1ad46d2df1f79859408b2a4ec21fbd950d5023a3ccfff359f0f54c4941976cad/sendgrid/sendgrid-python/pull/496
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ad46d2df1f79859408b2a4ec21fbd950d5023a3ccfff359f0f54c4941976cad/sendgrid/sendgrid-python/pull/496
og:image:altFixes Fixes #457 Fixes #458 Checklist I have made a material change to the repo (functionality, testing, spelling, grammar) I have read the [Contribution Guide] and my PR follows them. I update...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegalihmelon
hostnamegithub.com
expected-hostnamegithub.com
Nonedb675ffbe86f3a08023aaf76f083fc7f65e074708cdc617650b84119176f1009
turbo-cache-controlno-preview
go-importgithub.com/sendgrid/sendgrid-python git https://github.com/sendgrid/sendgrid-python.git
octolytics-dimension-user_id181234
octolytics-dimension-user_loginsendgrid
octolytics-dimension-repository_id3546794
octolytics-dimension-repository_nwosendgrid/sendgrid-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3546794
octolytics-dimension-repository_network_root_nwosendgrid/sendgrid-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3e6c9f597d227b0490794716e8b9dddd21a41ead
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsendgrid%2Fsendgrid-python%2Fpull%2F496
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsendgrid%2Fsendgrid-python%2Fpull%2F496
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sendgrid%2Fsendgrid-python
Reloadhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
Reloadhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
Reloadhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
sendgrid https://patch-diff.githubusercontent.com/sendgrid
sendgrid-pythonhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsendgrid%2Fsendgrid-python
Fork 725 https://patch-diff.githubusercontent.com/login?return_to=%2Fsendgrid%2Fsendgrid-python
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fsendgrid%2Fsendgrid-python
Code https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python
Issues 46 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues
Pull requests 12 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pulls
Actions https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/actions
Security 0 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/security
Insights https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pulse
Code https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python
Issues https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues
Pull requests https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pulls
Actions https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/actions
Security https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/security
Insights https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fsendgrid%2Fsendgrid-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fsendgrid%2Fsendgrid-python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issue-comment-box
galihmelonhttps://patch-diff.githubusercontent.com/galihmelon
sendgrid:masterhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/tree/master
galihmelon:masterhttps://patch-diff.githubusercontent.com/galihmelon/sendgrid-python/tree/master
Attempt to fix issues in sendgrid/helpers/mail/mail.py https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#top
galihmelonhttps://patch-diff.githubusercontent.com/galihmelon
sendgrid:masterhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/tree/master
galihmelon:masterhttps://patch-diff.githubusercontent.com/galihmelon/sendgrid-python/tree/master
Conversation 4 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
Commits 6 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits
Checks 0 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/checks
Files changed https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/files
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/galihmelon
galihmelonhttps://patch-diff.githubusercontent.com/galihmelon
Oct 29, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issue-269444155
#457https://github.com/sendgrid/sendgrid-python/issues/457
#458https://github.com/sendgrid/sendgrid-python/issues/458
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
October 29, 2017 22:26https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#commits-pushed-d1381c0
Attempt to decrease Cognitive Complexity of function; deduplicate sim…https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/d1381c0a4840831ad370e0383a4a68158879c437
d1381c0https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/d1381c0a4840831ad370e0383a4a68158879c437
Attempt to decrease Cognitive Complexity of function; deduplicate sim…https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/47f348809a158257e8f75045cbd571bfb2b79ca2
47f3488https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/47f348809a158257e8f75045cbd571bfb2b79ca2
Merge branch 'master' ofhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/6f4bcf66b5bfab99ae784390c409830f317e5f1b
https://github.com/galihmelon/sendgrid-pythonhttps://github.com/galihmelon/sendgrid-python
6f4bcf6https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/6f4bcf66b5bfab99ae784390c409830f317e5f1b
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
status: code review request https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22status%3A%20code%20review%20request%22
Oct 29, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#event-1315761620
https://patch-diff.githubusercontent.com/SendGridDX
SendGridDXhttps://patch-diff.githubusercontent.com/SendGridDX
Oct 29, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issuecomment-340308976
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
https://cla.sendgrid.com/sendgrid/sendgrid-python?pullRequest=496
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
Added missing whitespacehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/c681c06c396103b139956e64f7ccb81ae2d0d144
c681c06https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/c681c06c396103b139956e64f7ccb81ae2d0d144
https://patch-diff.githubusercontent.com/codecov-io
codecov-iohttps://patch-diff.githubusercontent.com/codecov-io
Oct 29, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issuecomment-340309116
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
Codecovhttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=h1
#496https://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=desc
masterhttps://codecov.io/gh/sendgrid/sendgrid-python/commit/3ec799f8a30ab8bc6bbfd794a85fcf4c80af2542?src=pr&el=desc
https://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=tree
Impacted Fileshttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=tree
sendgrid/helpers/mail/mail.pyhttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496/diff?src=pr&el=tree#diff-c2VuZGdyaWQvaGVscGVycy9tYWlsL21haWwucHk=
Continue to review full report at Codecovhttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=continue
Click here to learn morehttps://docs.codecov.io/docs/codecov-delta
Codecovhttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=footer
3ec799f...b7f759bhttps://codecov.io/gh/sendgrid/sendgrid-python/pull/496?src=pr&el=lastupdated
comment docshttps://docs.codecov.io/docs/pull-request-comments
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
October 29, 2017 22:59https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#commits-pushed-e7bac26
Made dict comprehension compatible with python 2.6https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/e7bac2616f696755d947ac6701f1c7052a42db7b
e7bac26https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/e7bac2616f696755d947ac6701f1c7052a42db7b
Added more spaces for visual indenthttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/b7f759b36a611387f8b4fdfc37c82b9b62d4f603
b7f759bhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496/commits/b7f759b36a611387f8b4fdfc37c82b9b62d4f603
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
difficulty: medium https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22difficulty%3A%20medium%22
hacktoberfest https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3Ahacktoberfest
Oct 30, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#event-1317157008
https://patch-diff.githubusercontent.com/apigirl
apigirlhttps://patch-diff.githubusercontent.com/apigirl
hacktoberfest https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3Ahacktoberfest
hacktoberfest https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3Ahacktoberfest
Oct 31, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#event-1319817396
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
Nov 2, 2017https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issuecomment-341479446
@galihmelonhttps://github.com/galihmelon
out our swag formhttps://dx.sendgrid.com/swag
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
type: twilio enhancement https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22type%3A%20twilio%20enhancement%22
Feb 27, 2018https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#event-1495548174
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
Jul 25, 2018 https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#ref-commit-6c23204
https://patch-diff.githubusercontent.com/thinkingserious
Add PRhttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/commit/6c232045fc7cee179aeae16d75bdaaaad6cd09f4
#496https://github.com/sendgrid/sendgrid-python/pull/496
6c23204https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/commit/6c232045fc7cee179aeae16d75bdaaaad6cd09f4
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
Jul 25, 2018https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#issuecomment-407848942
#347https://github.com/sendgrid/sendgrid-python/issues/347
this branchhttps://github.com/sendgrid/sendgrid-python/tree/v4
#347https://github.com/sendgrid/sendgrid-python/issues/347
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
https://patch-diff.githubusercontent.com/thinkingserious
thinkingserioushttps://patch-diff.githubusercontent.com/thinkingserious
Jul 25, 2018https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496#event-1753285679
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsendgrid%2Fsendgrid-python%2Fpull%2F496
difficulty: medium https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22difficulty%3A%20medium%22
status: code review request https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22status%3A%20code%20review%20request%22
type: twilio enhancement https://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/issues?q=state%3Aopen%20label%3A%22type%3A%20twilio%20enhancement%22
Fix "similar-code" issue in sendgrid/helpers/mail/mail.py https://github.com/sendgrid/sendgrid-python/issues/458
Fix "method_complexity" issue in sendgrid/helpers/mail/mail.py https://github.com/sendgrid/sendgrid-python/issues/457
Please reload this pagehttps://patch-diff.githubusercontent.com/sendgrid/sendgrid-python/pull/496
https://patch-diff.githubusercontent.com/galihmelon
https://patch-diff.githubusercontent.com/SendGridDX
https://patch-diff.githubusercontent.com/codecov-io
https://patch-diff.githubusercontent.com/thinkingserious
https://patch-diff.githubusercontent.com/apigirl
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.