Skip to content

Commit

Permalink
Apply lint fixes in documentation/
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal committed Dec 2, 2024
1 parent eb1ba5d commit f3402b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/_ext/link_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -64,7 +64,7 @@ class Issue(t.NamedTuple):
closed: bool


IssueTrackerCache = t.Dict[str, Issue]
IssueTrackerCache = dict[str, Issue]


@dataclasses.dataclass
Expand Down Expand Up @@ -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,
}

Expand All @@ -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")
Expand Down

0 comments on commit f3402b6

Please sign in to comment.