You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "BaseSession", the response_class argument in the initializer is marked as Optional and defaults to None. As a result, if response_class is not specified, it is set to Unknown, making it impossible to infer the response type.
Why isn't the default set to Response (R = TypeVar("R", bound=Response)) instead?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In "BaseSession", the
response_classargument in the initializer is marked as Optional and defaults toNone. As a result, ifresponse_classis not specified, it is set to Unknown, making it impossible to infer the response type.Why isn't the default set to
Response (R = TypeVar("R", bound=Response))instead?Beta Was this translation helpful? Give feedback.
All reactions