Skip to content

Commit 1672f2d

Browse files
committed
update utype dependency to 0.6.8
1 parent 6040899 commit 1672f2d

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ classifiers = [
3939
"Topic :: Internet :: WWW/HTTP",
4040
]
4141
dependencies = [
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",

utilmeta/core/response/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)