Skip to content

Commit

Permalink
Revert changing __getattr__ and ignore any usage complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Sep 29, 2024
1 parent c05eaa6 commit 9a56cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trio/_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import operator as _operator
import ssl as _stdlib_ssl
from enum import Enum as _Enum
from typing import TYPE_CHECKING, ClassVar, Final as TFinal, Generic, TypeVar
from typing import TYPE_CHECKING, Any, ClassVar, Final as TFinal, Generic, TypeVar

import trio

Expand Down Expand Up @@ -413,7 +413,7 @@ def __init__(
"version",
}

def __getattr__(self, name: str) -> object:
def __getattr__(self, name: str) -> Any: # noqa: ANN401 # Any used
if name in self._forwarded:
if name in self._after_handshake and not self._handshook.done:
raise NeedHandshakeError(f"call do_handshake() before calling {name!r}")
Expand Down

0 comments on commit 9a56cb0

Please sign in to comment.