(self, pattern, obj)
| 342 | """Matches one specific object only (i.e. makes '==' behave like 'is').""" |
| 343 | |
| 344 | def __init__(self, pattern, obj): |
| 345 | super().__init__(pattern) |
| 346 | self.obj = obj |
| 347 | |
| 348 | def __repr__(self): |
| 349 | return f"<is {self.obj!r}>" |