Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/interfaces/matcher.py @ 52763:aa948d9e3fee
interfaces: add a class level doc comment to the `IMatcher` class
This is trivial and can probably be expanded, but I wanted *something* to show
how PyCharm propagates the documentation in its tooltips.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 06 Feb 2025 15:17:37 -0500 |
parents | 5c48fd4c0e68 |
children |
comparison
equal
deleted
inserted
replaced
52762:fecda9f44e57 | 52763:aa948d9e3fee |
---|---|
21 UserMsgT, | 21 UserMsgT, |
22 ) | 22 ) |
23 | 23 |
24 | 24 |
25 class IMatcher(Protocol): | 25 class IMatcher(Protocol): |
26 """A protocol class that defines the common interface for all file matching | |
27 classes.""" | |
28 | |
26 @abc.abstractmethod | 29 @abc.abstractmethod |
27 def was_tampered_with_nonrec(self) -> bool: | 30 def was_tampered_with_nonrec(self) -> bool: |
28 ... | 31 ... |
29 | 32 |
30 @abc.abstractmethod | 33 @abc.abstractmethod |