Skip to content

Commit eb92326

Browse files
authored
fix: make api error properties optionals (#101)
For avoid linter error
1 parent 796687d commit eb92326

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

postgrest_py/exceptions.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict
1+
from typing import Dict, Optional
22

33

44
class APIError(Exception):
@@ -7,10 +7,10 @@ class APIError(Exception):
77
"""
88

99
_raw_error: Dict[str, str]
10-
message: str
11-
code: str
12-
hint: str
13-
details: str
10+
message: Optional[str]
11+
code: Optional[str]
12+
hint: Optional[str]
13+
details: Optional[str]
1414

1515
def __init__(self, error: Dict[str, str]) -> None:
1616
self._raw_error = error

0 commit comments

Comments
 (0)