mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 15:22:15 -04:00
Add missing type hints in tests (#14879)
* FIx-up type hints in tests.logging. * Add missing type hints to test_transactions.
This commit is contained in:
parent
345576bc34
commit
fc35e0673f
8 changed files with 75 additions and 42 deletions
|
@ -13,9 +13,11 @@
|
|||
# limitations under the License.
|
||||
import logging
|
||||
|
||||
from tests.unittest import TestCase
|
||||
|
||||
class LoggerCleanupMixin:
|
||||
def get_logger(self, handler):
|
||||
|
||||
class LoggerCleanupMixin(TestCase):
|
||||
def get_logger(self, handler: logging.Handler) -> logging.Logger:
|
||||
"""
|
||||
Attach a handler to a logger and add clean-ups to remove revert this.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue