Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9b069ee

Browse files
Specify inheritance of APIToken and JWTAuthToken to AuthToken (elchicodepython#12)
This omits the Pyright warning when an APIToken/JWAuthToken is used in the creation of a new NocoDBRequests instance.
1 parent c1d59ff commit 9b069ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎nocodb/nocodb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ def get_header(self) -> dict:
3232
pass
3333

3434

35-
class APIToken:
35+
class APIToken(AuthToken):
3636
def __init__(self, token: str):
3737
self.__token = token
3838

3939
def get_header(self) -> dict:
4040
return {"xc-token": self.__token}
4141

4242

43-
class JWTAuthToken:
43+
class JWTAuthToken(AuthToken):
4444
def __init__(self, token: str):
4545
self.__token = token
4646

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /