Skip to content

Commit 6d5ad7a

Browse files
committed
feat: add badges to README and update type hints in tests
1 parent db2230f commit 6d5ad7a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Lettermint Python SDK
22

3+
[![PyPI Version](https://img.shields.io/pypi/v/lettermint?style=flat-square)](https://pypi.org/project/lettermint/)
4+
[![PyPI Downloads](https://img.shields.io/pypi/dm/lettermint?style=flat-square)](https://pypi.org/project/lettermint/)
5+
[![Python Version](https://img.shields.io/pypi/pyversions/lettermint?style=flat-square)](https://pypi.org/project/lettermint/)
6+
[![GitHub Tests](https://img.shields.io/github/actions/workflow/status/lettermint/lettermint-python/ci.yml?branch=main&label=tests&style=flat-square)](https://github.com/lettermint/lettermint-python/actions?query=workflow%3ACI+branch%3Amain)
7+
[![License](https://img.shields.io/github/license/lettermint/lettermint-python?style=flat-square)](https://github.com/lettermint/lettermint-python/blob/main/LICENSE)
8+
39
Official Python SDK for the [Lettermint](https://lettermint.co) email API.
410

511
## Installation

tests/test_webhook.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import hmac
55
import json
66
import time
7+
from typing import Optional, Tuple
78

89
import pytest
910

@@ -17,8 +18,8 @@
1718

1819

1920
def generate_valid_signature(
20-
payload: str, secret: str, timestamp: int | None = None
21-
) -> tuple[str, int]:
21+
payload: str, secret: str, timestamp: Optional[int] = None
22+
) -> Tuple[str, int]:
2223
"""Generate a valid signature for testing."""
2324
ts = timestamp or int(time.time())
2425
signed_content = f"{ts}.{payload}"

0 commit comments

Comments
 (0)