resource.pyi 363 B

12345678910111213
  1. from typing import ClassVar
  2. from zope.interface import Interface, implementer
  3. class IResource(Interface):
  4. isLeaf: ClassVar[bool]
  5. def __init__() -> None: ...
  6. def putChild(path: bytes, child: IResource) -> None: ...
  7. @implementer(IResource)
  8. class Resource:
  9. isLeaf: ClassVar[bool]
  10. def putChild(self, path: bytes, child: IResource) -> None: ...