Skip to content

Commit 27463c1

Browse files
committed
fix: Use cache for endpoints correctly
1 parent 92f53bf commit 27463c1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mailjet_rest/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def __getattr__(self, name: str) -> Endpoint:
713713
if name not in self._endpoint_cache:
714714
self._endpoint_cache[name] = Endpoint(self, name)
715715

716-
return Endpoint(self, name)
716+
return self._endpoint_cache[name]
717717

718718
def __repr__(self) -> str:
719719
"""OWASP Secrets Management: Redact sensitive information from object representation.

mailjet_rest/utils/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def clean_version(version_str: str) -> tuple[int, ...]:
3535
version_part = match.group(1)
3636
return tuple(map(int, version_part.split(".")))
3737

38-
return 0, 0, 0 # type: ignore[unreachable]
38+
return 0, 0, 0
3939

4040

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

0 commit comments

Comments
 (0)