1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

relax input_type_check to allow object argument

This commit is contained in:
Kelly Brazil
2022-10-25 15:21:26 -07:00
parent 8644f70db4
commit e8d6d4c080

View File

@ -273,7 +273,7 @@ def convert_to_bool(value: object) -> bool:
return False
def input_type_check(data: str) -> None:
def input_type_check(data: object) -> None:
"""Ensure input data is a string. Raises `TypeError` if not."""
if not isinstance(data, str):
raise TypeError("Input data must be a 'str' object.")