Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
comment
  • Loading branch information
AlexWaygood authored May 19, 2023
commit 75abb8790e9b9c8a4dac19e9450abdf2c078c042
3 changes: 3 additions & 0 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2560,6 +2560,9 @@ def __init__(self, message: str) -> None:
def __repr__(self) -> str:
return '<LandMine ' + repr(self.__message__) + ">"

# Type checkers wouldn't check attribute access on instances of this class properly
# if they saw it had a __getattribute__ method,
# so pretend to type checkers that the __getattribute__ method doesn't exist
if not TYPE_CHECKING:
def __getattribute__(self, name):
if name in ('__repr__', '__message__'):
Expand Down