Fix an issue with namedtuples
This commit is contained in:
1 parent
6d62e55b5e
commit
6cdde65052
2 files changed
+15
-3
No files matched your search
@@ -217,6 +217,9 @@ def get_int_or_none(context):
|
||||
return _get_safe_value_or_none(context, int)
|
||||
|
||||
|
||||
def get_str_or_none(context):
|
||||
return _get_safe_value_or_none(context, (bytes, unicode))
|
||||
|
||||
def is_number(context):
|
||||
return _get_safe_value_or_none(context, (int, float)) is not None
|
||||
|
||||
|
||||
Reference in new issue
Block a user