Skip to content

Commit f99e7dc

Browse files
committed
Add all_keys
1 parent 0366fd3 commit f99e7dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

servicestack/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'TypeConverters',
6363
'to_json',
6464
'from_json',
65+
'all_keys',
6566
'to_dict',
6667
'convert',
6768
'is_optional',
@@ -110,7 +111,7 @@
110111
from .clients import JsonServiceClient, WebServiceException, WebServiceExceptionType, \
111112
qsvalue, resolve_httpmethod
112113

113-
from .reflection import TypeConverters, to_json, from_json, to_dict, convert, is_optional, \
114+
from .reflection import TypeConverters, to_json, from_json, all_keys, to_dict, convert, is_optional, \
114115
is_list, is_dict, generic_args, generic_arg, inspect_vars, dump, printdump, dumptable, \
115116
printdumptable
116117

servicestack/reflection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def from_json(into: Type, json_str: str):
341341

342342

343343
# inspect utils
344-
def _allkeys(obj):
344+
def all_keys(obj):
345345
keys = []
346346
for o in obj:
347347
for key in o:

0 commit comments

Comments
 (0)