Skip to content

Commit d970c03

Browse files
Add typing to exceptions file and format it
1 parent 194c9d2 commit d970c03

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nocodb/exceptions.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
from typing import Optional
2+
3+
14
class NocoDBAPIError(Exception):
2-
def __init__(self, message, status_code, response_json=None, response_text=None):
5+
def __init__(
6+
self,
7+
message: str,
8+
status_code: int,
9+
response_json: Optional[dict] = None,
10+
response_text: Optional[str] = None,
11+
):
312
super().__init__(message)
413
self.status_code = status_code
514
self.response_json = response_json

0 commit comments

Comments
 (0)