explosion / srsly

🦉 Modern high-performance serialization utilities for Python (JSON, MessagePack, Pickle)
MIT License
435 stars 31 forks source link

Fix typing for JSONInput and JSONInputBin #79

Closed rmitsch closed 2 years ago

rmitsch commented 2 years ago

Description

Change Tuple[Any] to Tuple[Any, ...] for JSONInput and JSONInputBin. Otherwise type hinting will complain about passing tuples: srsly.json_dumps(data=(1, 2, 3)) will trigger a type hint warning.

Types of change

Bug fix.

Checklist

polm commented 2 years ago

Nice catch!