Skip to content

Commit ecbdbaf

Browse files
committed
refactor: use NoReturn for _handle_error type
Signed-off-by: Federico Bond <[email protected]>
1 parent b06c54a commit ecbdbaf

File tree

1 file changed

+2
-2
lines changed
  • providers/openfeature-provider-ofrep/src/openfeature/contrib/provider/ofrep

1 file changed

+2
-2
lines changed

providers/openfeature-provider-ofrep/src/openfeature/contrib/provider/ofrep/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
from datetime import datetime, timedelta, timezone
33
from email.utils import parsedate_to_datetime
4-
from typing import Any, Dict, List, Optional, Union
4+
from typing import Any, Dict, List, NoReturn, Optional, Union
55
from urllib.parse import urljoin
66

77
import requests
@@ -124,7 +124,7 @@ def _resolve(
124124
flag_metadata=data["metadata"],
125125
)
126126

127-
def _handle_error(self, exception: requests.RequestException) -> None:
127+
def _handle_error(self, exception: requests.RequestException) -> NoReturn:
128128
response = exception.response
129129
if response is None:
130130
raise GeneralError(str(exception)) from exception

0 commit comments

Comments
 (0)