mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 16:24:06 -04:00
Add types to synapse.util. (#10601)
This commit is contained in:
parent
ceab5a4bfa
commit
524b8ead77
41 changed files with 400 additions and 253 deletions
|
@ -38,6 +38,7 @@ from twisted.internet.interfaces import (
|
|||
IReactorCore,
|
||||
IReactorPluggableNameResolver,
|
||||
IReactorTCP,
|
||||
IReactorThreads,
|
||||
IReactorTime,
|
||||
)
|
||||
|
||||
|
@ -63,7 +64,12 @@ JsonDict = Dict[str, Any]
|
|||
# Note that this seems to require inheriting *directly* from Interface in order
|
||||
# for mypy-zope to realize it is an interface.
|
||||
class ISynapseReactor(
|
||||
IReactorTCP, IReactorPluggableNameResolver, IReactorTime, IReactorCore, Interface
|
||||
IReactorTCP,
|
||||
IReactorPluggableNameResolver,
|
||||
IReactorTime,
|
||||
IReactorCore,
|
||||
IReactorThreads,
|
||||
Interface,
|
||||
):
|
||||
"""The interfaces necessary for Synapse to function."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue