Skip to content

Commit 0bb01c2

Browse files
committed
chore: Fix minor issues and typos
1 parent 4e1b590 commit 0bb01c2

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ with Client(auth=(api_key, api_secret), version="v3.1") as mailjet:
189189
(Note:
190190

191191
> **Note**
192-
> If you choose not to use the context manager, you should manually call mailjet.close() when your application shuts down).
192+
> If you choose not to use the context manager, you should manually call mailjet.close() when your application shuts down.
193193
194194
### Advanced Configuration
195195

@@ -464,7 +464,7 @@ Some requests (for example [GET /contact](https://dev.mailjet.com/email/referenc
464464
`limit` `int` Limit the response to a select number of returned objects. Default value: `10`. Maximum value: `1000`
465465
`offset` `int` Retrieve a list of objects starting from a certain offset. Combine this query parameter with `limit` to retrieve a specific section of the list of objects. Default value: `0`
466466
`sort` `str` Sort the results by a property and select ascending (ASC) or descending (DESC) order. The default order is ascending. Keep in mind that this is not available for all properties. Default value: `ID asc`
467-
Next example returns 40 contacts starting from 51th record sorted by `Email` field descendally:
467+
Next example returns 40 contacts starting from 51st record sorted by `Email` field descendally:
468468

469469
```python
470470
filters = {
@@ -645,7 +645,7 @@ Feel free to ask anything, and contribute:
645645
- Create a new branch.
646646
- Implement your feature or bug fix.
647647
- Add documentation to it.
648-
- Commit, push, open a pull request and voila.
648+
- Commit, push, open a pull request and voilà.
649649

650650
If you have suggestions on how to improve the guides, please submit an issue in our [Official API Documentation repo](https://github.com/mailjet/api-documentation).
651651

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Please include the following details:
2626

2727
If English is not your first language, please try to describe the
2828
problem and its impact to the best of your ability. For greater detail,
29-
please use your native language and we will try our best to translate it
29+
please use your native language, and we will try our best to translate it
3030
using online services.
3131

3232
Please also include the code you used to find the problem and the

mailjet_rest/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def logging_handler(to_file: bool = False, **_kwargs: Any) -> logging.Logger: #
141141
142142
Args:
143143
to_file (bool): Deprecated flag. Output is no longer written to files natively.
144-
**kwargs (Any): Absorbs any other legacy keyword arguments.
144+
**_kwargs (Any): Absorbs any other legacy keyword arguments.
145145
146146
Returns:
147147
logging.Logger: A legacy logger instance to prevent AttributeError in old integrations.
@@ -175,7 +175,7 @@ def parse_response(
175175
response (requests.Response): The HTTP response.
176176
log (Any, optional): Deprecated logging callable.
177177
debug (bool): Deprecated debug flag.
178-
**kwargs (Any): Absorbs any other legacy keyword arguments.
178+
**_kwargs (Any): Absorbs any other legacy keyword arguments.
179179
180180
Returns:
181181
Any: The parsed JSON dictionary or raw text string.

mailjet_rest/utils/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def clean_version(version_str: str) -> tuple[int, ...]:
3434
except (IndexError, ValueError):
3535
return 0, 0, 0
3636
else:
37-
return (major, minor, patch)
37+
return major, minor, patch
3838

3939

4040
# VERSION is a tuple of integers (1, 3, 2).

0 commit comments

Comments
 (0)