|
| 1 | +from collections.abc import AsyncGenerator |
1 | 2 | from contextlib import asynccontextmanager |
2 | 3 | from contextvars import ContextVar |
3 | 4 | import re |
4 | 5 | from typing import ( |
5 | 6 | TYPE_CHECKING, |
6 | 7 | Any, |
7 | | - AsyncGenerator, |
8 | 8 | Callable, |
9 | | - Dict, |
10 | 9 | Generic, |
11 | | - List, |
12 | 10 | Optional, |
13 | 11 | TypeVar, |
14 | 12 | Union, |
@@ -134,8 +132,8 @@ class Bot(BaseBot, Generic[A]): |
134 | 132 | rest: RestVersionSwitcher |
135 | 133 |
|
136 | 134 | async def async_graphql( |
137 | | - self, query: str, variables: Optional[Dict[str, Any]] = None |
138 | | - ) -> Dict[str, Any]: ... |
| 135 | + self, query: str, variables: Optional[dict[str, Any]] = None |
| 136 | + ) -> dict[str, Any]: ... |
139 | 137 |
|
140 | 138 | @override |
141 | 139 | def __init__(self, adapter: "Adapter", app: Union[GitHubApp, OAuthApp]): |
@@ -247,8 +245,8 @@ async def as_oauth_app(self) -> AsyncGenerator[Self, None]: |
247 | 245 | async def as_installation( |
248 | 246 | self, |
249 | 247 | installation_id: int, |
250 | | - repositories: Union[Unset, List[str]] = UNSET, |
251 | | - repository_ids: Union[Unset, List[int]] = UNSET, |
| 248 | + repositories: Union[Unset, list[str]] = UNSET, |
| 249 | + repository_ids: Union[Unset, list[int]] = UNSET, |
252 | 250 | permissions: Union[Unset, "AppPermissionsType"] = UNSET, |
253 | 251 | ) -> AsyncGenerator[Self, None]: |
254 | 252 | if self._ctx_github.get() is not None: |
|
0 commit comments