File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ classifiers = [
3939 " Topic :: Internet :: WWW/HTTP" ,
4040]
4141dependencies = [
42- " utype>=0.6.7 " ,
42+ " utype>=0.6.8 " ,
4343 " django>=4.1.0" ,
4444 " databases>=0.7.0" ,
4545 " jwcrypto>=1.5.4" ,
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class OperationAResponse(Response):
121121 and since the SDK code is basically auto-generated,
122122 it's considered the best practice for SDK
123123 """
124- if not item :
124+ if not item or isinstance ( item , TypeVar ) :
125125 return cls
126126
127127 if isinstance (item , int ):
@@ -149,10 +149,9 @@ class _response(cls):
149149 return _response
150150
151151 def __init_subclass__ (cls , ** kwargs ):
152- result_type = cls .__annotations__ .get ('result' )
153- if result_type and isinstance (result_type , TypeVar ):
154- cls .__annotations__ .pop ('result' )
155-
152+ # result_type = cls.__annotations__.get('result')
153+ # if result_type and isinstance(result_type, TypeVar):
154+ # cls.__annotations__.pop('result')
156155 cls .__parser__ = cls .__parser_cls__ .apply_for (cls )
157156 cls .description = cls .description or get_doc (cls )
158157 cls .wrapped = bool (
You can’t perform that action at this time.
0 commit comments