mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 08:32:11 -04:00
Type annotations
Add some type annotations to help PyCharm (in particular) to figure out the types of a bunch of things.
This commit is contained in:
parent
b9e997f561
commit
3413f1e284
6 changed files with 46 additions and 0 deletions
21
synapse/server.pyi
Normal file
21
synapse/server.pyi
Normal file
|
@ -0,0 +1,21 @@
|
|||
import synapse.handlers
|
||||
import synapse.handlers.auth
|
||||
import synapse.handlers.device
|
||||
import synapse.storage
|
||||
import synapse.state
|
||||
|
||||
class HomeServer(object):
|
||||
def get_auth_handler(self) -> synapse.handlers.auth.AuthHandler:
|
||||
pass
|
||||
|
||||
def get_datastore(self) -> synapse.storage.DataStore:
|
||||
pass
|
||||
|
||||
def get_device_handler(self) -> synapse.handlers.device.DeviceHandler:
|
||||
pass
|
||||
|
||||
def get_handlers(self) -> synapse.handlers.Handlers:
|
||||
pass
|
||||
|
||||
def get_state_handler(self) -> synapse.state.StateHandler:
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue