Skip to content

Commit

Permalink
Use mypy attrs plugin more effectively
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Jun 21, 2021
1 parent 1562403 commit 6b379a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hikari/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ def _(self, _: attr.Attribute[typing.Optional[int]], value: typing.Optional[int]
if value is not None and (not isinstance(value, int) or value <= 0):
raise ValueError("http_settings.max_redirects must be None or a POSITIVE integer")

_ssl: typing.Union[bool, ssl_.SSLContext] = attr.field(
default=True,
_ssl: ssl_.SSLContext = attr.field(
factory=lambda: _ssl_factory(True),
converter=_ssl_factory,
validator=attr.validators.instance_of((ssl_.SSLContext, bool)),
validator=attr.validators.instance_of(ssl_.SSLContext),
)

@property
Expand Down

0 comments on commit 6b379a3

Please sign in to comment.