Skip to content
Snippets Groups Projects
  • Erik Johnston's avatar
    0f1afbe8
    Change HomeServer definition to work with typing. · 0f1afbe8
    Erik Johnston authored
    Duplicating function signatures between server.py and server.pyi is
    silly. This commit changes that by changing all `build_*` methods to
    `get_*` methods and changing the `_make_dependency_method` to work work
    as a descriptor that caches the produced value.
    
    There are some changes in other files that were made to fix the typing
    in server.py.
    0f1afbe8
    History
    Change HomeServer definition to work with typing.
    Erik Johnston authored
    Duplicating function signatures between server.py and server.pyi is
    silly. This commit changes that by changing all `build_*` methods to
    `get_*` methods and changing the `_make_dependency_method` to work work
    as a descriptor that caches the produced value.
    
    There are some changes in other files that were made to fix the typing
    in server.py.