From ca894f202609c8d27ba14ea1f200523e1ba7ba74 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 11 Nov 2025 12:34:00 -0500 Subject: Other changes related to handling null strings. This fixes the incorrect type hint and the other instance of the function. It also looks like type parsing could have the same issue, so I've updated that as well. --- python/compatibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/compatibility.py') diff --git a/python/compatibility.py b/python/compatibility.py index 95afcbad..76a62d3f 100644 --- a/python/compatibility.py +++ b/python/compatibility.py @@ -22,7 +22,7 @@ import sys def pyNativeStr(arg): - if isinstance(arg, str): + if arg is None or isinstance(arg, str): return arg else: try: -- cgit v1.3.1