1- from typing import TYPE_CHECKING , Any , ClassVar , Type , Union
1+ from typing import TYPE_CHECKING , Any , ClassVar , Type
22
33import requests
44
@@ -17,15 +17,15 @@ def __init__(self, response: requests.models.Response) -> None:
1717 self ._body_json = None
1818
1919 @property
20- def body_json (self ) -> Union [ dict [str , Any ], list [dict [str , Any ] ]]:
20+ def body_json (self ) -> dict [str , Any ] | list [dict [str , Any ]]:
2121 """JSON representation of response body returned from API request."""
2222 return self ._body_json
2323
2424
2525class JSONResponse (BaseResponse ):
2626 """TODO."""
2727 _response_fields : frozenset [str ]
28- _meta_class : ClassVar [Type ] = JSONResponseMeta
28+ _meta_class : ClassVar [Type [ JSONResponseMeta ] ] = JSONResponseMeta
2929 meta : JSONResponseMeta
3030
3131 def _init_response_field (self , field : str , value : Any ) -> None :
@@ -37,7 +37,7 @@ def __init__(
3737 response : requests .models .Response ,
3838 response_fields : frozenset [str ],
3939 list_response : bool = False
40- ):
40+ ) -> None :
4141 """TODO."""
4242 super ().__init__ (response )
4343 self ._response_fields = response_fields
0 commit comments