Skip to content

Commit e380240

Browse files
committed
Use object in place of typing.Any in annotations
1 parent e50bff6 commit e380240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oidc-exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def extract_claims(token: str) -> dict[str, object]:
202202
return json.loads(base64.urlsafe_b64decode(payload))
203203

204204

205-
def render_claims(claims: dict[str, typing.Any]) -> str:
205+
def render_claims(claims: dict[str, object]) -> str:
206206
def _get(name: str) -> str: # noqa: WPS430
207207
return claims.get(name, 'MISSING')
208208

@@ -218,7 +218,7 @@ def _get(name: str) -> str: # noqa: WPS430
218218
)
219219

220220

221-
def warn_on_reusable_workflow(claims: dict[str, typing.Any]) -> None:
221+
def warn_on_reusable_workflow(claims: dict[str, object]) -> None:
222222
# A reusable workflow is identified by having different values
223223
# for its workflow_ref (the initiating workflow) and job_workflow_ref
224224
# (the reusable workflow).

0 commit comments

Comments
 (0)