From f3402b6bcb0d872f360f1cf653abfc3371641e72 Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Mon, 2 Dec 2024 15:39:37 -0400 Subject: [PATCH] Apply lint fixes in documentation/ --- documentation/_ext/link_issues.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/_ext/link_issues.py b/documentation/_ext/link_issues.py index baa7b92407c..4c1f45dc6fc 100644 --- a/documentation/_ext/link_issues.py +++ b/documentation/_ext/link_issues.py @@ -54,7 +54,7 @@ class IssueTrackerBuildEnvironment(BuildEnvironment): tracker_config: "TrackerConfig" issuetracker_cache: "IssueTrackerCache" - github_rate_limit: t.Tuple[float, bool] + github_rate_limit: tuple[float, bool] class Issue(t.NamedTuple): @@ -64,7 +64,7 @@ class Issue(t.NamedTuple): closed: bool -IssueTrackerCache = t.Dict[str, Issue] +IssueTrackerCache = dict[str, Issue] @dataclasses.dataclass @@ -355,7 +355,7 @@ def lookup_github_issue( return None -BUILTIN_ISSUE_TRACKERS: t.Dict[str, t.Any] = { +BUILTIN_ISSUE_TRACKERS: dict[str, t.Any] = { "github": lookup_github_issue, } @@ -371,7 +371,7 @@ def connect_builtin_tracker(app: Sphinx) -> None: app.connect("issuetracker-lookup-issue", tracker) -def setup(app: Sphinx) -> t.Dict[str, t.Any]: +def setup(app: Sphinx) -> dict[str, t.Any]: app.add_event("issuetracker-lookup-issue") app.connect("builder-inited", connect_builtin_tracker) app.add_config_value("issuetracker", None, "env")