-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Replace Incomplete | None = None
in third party stubs
#14063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d92c48
Replace `Incomplete | None = None` in third party stubs
srittau 5ee9374
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 98e2444
Remove stubs from stricter pyright checks
srittau 9f945b6
[requests] Add a `_JSON` type var
srittau 14f7051
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7df2544
Merge branch 'main' into incomplete-none-default
srittau eeda4d1
Remove one more file from stricter pyright checks
srittau 1b61f77
Fix one instance in a dataclass
srittau 6863319
Merge branch 'main' into incomplete-none-default
srittau 94a707d
Remove gevent
srittau 3e0e190
Merge branch 'main' into incomplete-none-default
Avasam 0aab0f8
Apply suggestions from code review
srittau 51d9c9a
Update pyrightconfig.stricter.json
srittau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
stubs/Authlib/authlib/integrations/base_client/async_app.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
from _typeshed import Incomplete | ||
|
||
from authlib.integrations.base_client.sync_app import OAuth1Base, OAuth2Base | ||
|
||
__all__ = ["AsyncOAuth1Mixin", "AsyncOAuth2Mixin"] | ||
|
||
class AsyncOAuth1Mixin(OAuth1Base): | ||
async def request(self, method, url, token: Incomplete | None = None, **kwargs): ... | ||
async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... | ||
async def fetch_access_token(self, request_token: Incomplete | None = None, **kwargs): ... | ||
async def request(self, method, url, token=None, **kwargs): ... | ||
async def create_authorization_url(self, redirect_uri=None, **kwargs): ... | ||
async def fetch_access_token(self, request_token=None, **kwargs): ... | ||
|
||
class AsyncOAuth2Mixin(OAuth2Base): | ||
async def load_server_metadata(self): ... | ||
async def request(self, method, url, token: Incomplete | None = None, **kwargs): ... | ||
async def create_authorization_url(self, redirect_uri: Incomplete | None = None, **kwargs): ... | ||
async def fetch_access_token(self, redirect_uri: Incomplete | None = None, **kwargs): ... | ||
async def request(self, method, url, token=None, **kwargs): ... | ||
async def create_authorization_url(self, redirect_uri=None, **kwargs): ... | ||
async def fetch_access_token(self, redirect_uri=None, **kwargs): ... |
4 changes: 1 addition & 3 deletions
4
stubs/Authlib/authlib/integrations/base_client/async_openid.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from _typeshed import Incomplete | ||
|
||
__all__ = ["AsyncOpenIDMixin"] | ||
|
||
class AsyncOpenIDMixin: | ||
async def fetch_jwk_set(self, force: bool = False): ... | ||
async def userinfo(self, **kwargs): ... | ||
async def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None): ... | ||
async def parse_id_token(self, token, nonce, claims_options=None): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
from _typeshed import Incomplete | ||
|
||
class OpenIDMixin: | ||
def fetch_jwk_set(self, force: bool = False): ... | ||
def userinfo(self, **kwargs): ... | ||
def parse_id_token(self, token, nonce, claims_options: Incomplete | None = None, leeway: int = 120): ... | ||
def parse_id_token(self, token, nonce, claims_options=None, leeway: int = 120): ... | ||
def create_load_key(self): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
from _typeshed import Incomplete | ||
|
||
def loads(obj, kid: Incomplete | None = None): ... | ||
def dumps(key, kty: Incomplete | None = None, **params): ... | ||
def loads(obj, kid=None): ... | ||
def dumps(key, kty=None, **params): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
from _typeshed import Incomplete | ||
|
||
def load_pem_key( | ||
raw, ssh_type: Incomplete | None = None, key_type: Incomplete | None = None, password: Incomplete | None = None | ||
): ... | ||
def load_pem_key(raw, ssh_type=None, key_type=None, password=None): ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.