Skip to content
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

Add a couple of type elaborations #3

Merged
merged 9 commits into from
Aug 26, 2024
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This package provides type stubs for the [google-auth](https://pypi.org/project/

**This is in no way affiliated with Google.**

The stubs were created automatically by [stubgen](https://mypy.readthedocs.io/en/stable/stubgen.html).
The stubs were largely created automatically by [stubgen](https://mypy.readthedocs.io/en/stable/stubgen.html).

## Installation
```shell script
Expand Down
2 changes: 1 addition & 1 deletion google-stubs/auth/transport/requests.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TimeoutGuard:

class Request(transport.Request):
session: Incomplete
def __init__(self, session: Incomplete | None = ...) -> None: ...
def __init__(self, session: requests.Session | None = ...) -> None: ...
def __del__(self) -> None: ...
def __call__(
self,
Expand Down
13 changes: 8 additions & 5 deletions google-stubs/oauth2/id_token.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ from google.auth import (
environment_vars as environment_vars,
exceptions as exceptions,
jwt as jwt,
transport
)

from typing import Any, Mapping, Union

def verify_token(
id_token,
request,
audience: Incomplete | None = ...,
certs_url=...,
id_token: str | bytes,
request: transport.Request,
audience: str | list[str] | None = ...,
certs_url: str = ...,
clock_skew_in_seconds: int = ...,
): ...
) -> Mapping[str, Any]: ...
def verify_oauth2_token(
id_token,
request,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "google-auth-stubs"
version = "0.2.0"
version = "0.3.0"
license = "Apache-2.0"
description = "Type stubs for google-auth"
authors = ["Henrik Bruåsdal <henrik.bruasdal@gmail.com>"]
Expand Down
Loading