File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 4747 - name : Upload coverage to Codecov
4848 uses : codecov/codecov-action@v5
4949 with :
50+ token : ${{ secrets.CODECOV_TOKEN }}
5051 file : ./coverage.xml
5152 flags : unittests
5253 name : codecov-umbrella
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Client:
3030 host : str = API_HOST
3131 client : httpx .Client
3232
33- def __init__ (self ):
33+ def __init__ (self ) -> None :
3434 self .client = httpx .Client ()
3535 self .client .headers .update (
3636 {
@@ -43,7 +43,7 @@ def __init__(self):
4343 self .api_key = os .getenv ('FACTURAPI_KEY' , '' )
4444 self .client .auth = httpx .BasicAuth (self .api_key , '' )
4545
46- def configure (self , api_key : str ):
46+ def configure (self , api_key : str ) -> None :
4747 """Configure the http client.
4848
4949 Import the client and configure it passing the `API_KEY`
@@ -142,7 +142,7 @@ def download_request(
142142 return response .content
143143
144144 @staticmethod
145- def _check_response (response : Response ):
145+ def _check_response (response : Response ) -> None :
146146 if not response .is_success :
147147 raise FacturapiResponseException (
148148 json = response .json (),
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def retrieve(cls, id: str) -> Resource:
9090 response = client .get (f'/{ cls ._resource } /{ id } ' )
9191 return cls ._from_dict (response )
9292
93- def refresh (self ):
93+ def refresh (self ) -> None :
9494 """Refresh a resource
9595
9696 Refresh resource's data to be sure its the latest. It
You can’t perform that action at this time.
0 commit comments