Skip to content

Commit

Permalink
Merge pull request #2647 from sopel-irc/urllib3-cap
Browse files Browse the repository at this point in the history
build: pin urllib3<2.3 to accommodate our old fork of vcrpy
  • Loading branch information
dgw authored Jan 26, 2025
2 parents da05822 + 31d9026 commit 99c4a00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ sphinx-rfcsection~=0.1.1
# use fork of vcrpy 5.x until kevin1024/vcrpy#777 is (hopefully) accepted
# (or until py3.9 EOL... in 10/2025, I HOPE NOT)
vcrpy @ git+https://github.com/sopel-irc/vcrpy@uncap-urllib3
# also have to use a version of urllib3 that doesn't use the `version_string`
# attr of the response object, because vcrpy won't support it until 7.x
urllib3<2.3
# type check
# often breaks CI on master, so pin and update deliberately, on our own terms
mypy==1.11.2
Expand Down
2 changes: 1 addition & 1 deletion sopel/tools/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def validate_timezone(zone: Optional[str]) -> str:
except pytz.exceptions.UnknownTimeZoneError:
raise ValueError('Invalid time zone.')

return cast(str, tz.zone)
return cast('str', tz.zone)


def validate_format(tformat: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion sopel/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def __init__(

# The regex will always match any string, even an empty one
components_match = cast(
Match, PreTrigger.component_regex.match(self.hostmask or ''))
'Match', PreTrigger.component_regex.match(self.hostmask or ''))
nick, self.user, self.host = components_match.groups()
self.nick: Identifier = self.make_identifier(nick)

Expand Down

0 comments on commit 99c4a00

Please sign in to comment.