summaryrefslogtreecommitdiff
path: root/python/compatibility.py
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-11-11 12:34:00 -0500
committerAlexander Taylor <alex@vector35.com>2026-01-20 09:44:17 -0500
commitca894f202609c8d27ba14ea1f200523e1ba7ba74 (patch)
treeb74d56327c4d23b94f66d19bbba818675a5758b2 /python/compatibility.py
parente7bbb5129fd032310b2e2f710ce83945c03f5b13 (diff)
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.
Diffstat (limited to 'python/compatibility.py')
-rw-r--r--python/compatibility.py2
1 files changed, 1 insertions, 1 deletions
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: