sendgrid-async 2.3.0__tar.gz → 2.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sendgrid-async
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: SendGrid using an httpx client
5
5
  Home-page: https://github.com/EM51641/async-sendgrid-
6
6
  License: MIT
@@ -82,7 +82,7 @@ class SendgridAPI(BaseSendgridAPI):
82
82
  api_key: str,
83
83
  endpoint: str = "https://api.sendgrid.com/v3/mail/send",
84
84
  on_behalf_of: Optional[str] = None,
85
- pool: ConnectionPool = ConnectionPool(),
85
+ pool: Optional[ConnectionPool] = None,
86
86
  ):
87
87
  self._api_key = api_key
88
88
  self._endpoint = endpoint
@@ -97,7 +97,7 @@ class SendgridAPI(BaseSendgridAPI):
97
97
  if on_behalf_of:
98
98
  self._headers["On-Behalf-Of"] = on_behalf_of
99
99
 
100
- self._pool = pool
100
+ self._pool = pool if pool is not None else ConnectionPool()
101
101
  self._session = self._pool._create_client(self._headers)
102
102
 
103
103
  @property
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "sendgrid-async"
3
- version = "2.3.0"
3
+ version = "2.3.1"
4
4
  description = "SendGrid using an httpx client"
5
5
  license = "MIT"
6
6
  authors = ["Elyes Mahjoubi <elyesmahjoubi@gmail.com>"]
File without changes
File without changes