Skip to content

Commit f2aba3d

Browse files
committed
url: rename UrlInfo → URLInfo
1 parent 582e7da commit f2aba3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sopel/modules/url.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def title_auto(bot: SopelWrapper, trigger: Trigger):
358358
bot.memory["last_seen_url"][trigger.sender] = url
359359

360360

361-
class UrlInfo(NamedTuple):
361+
class URLInfo(NamedTuple):
362362
"""Helper class for information about a URL handled by this plugin."""
363363

364364
url: str
@@ -381,7 +381,7 @@ def process_urls(
381381
trigger: Trigger,
382382
urls: List[str],
383383
requested: bool = False,
384-
) -> Generator[UrlInfo, None, None]:
384+
) -> Generator[URLInfo, None, None]:
385385
"""
386386
For each URL in the list, ensure it should be titled, and do so.
387387
@@ -420,7 +420,7 @@ def process_urls(
420420

421421
if check_callbacks(bot, url, use_excludes=not requested):
422422
# URL matches a callback OR is excluded, ignore
423-
yield UrlInfo(url, None, None, None, True)
423+
yield URLInfo(url, None, None, None, True)
424424
continue
425425

426426
# Prevent private addresses from being queried if enable_private_resolution is False

0 commit comments

Comments
 (0)