Use cls over the name of the factory

This commit is contained in:
mhchia
2019-12-26 20:44:10 +08:00
parent 3c98b1973d
commit 68c84b273d

View File

@ -238,7 +238,7 @@ class PubsubFactory(factory.Factory):
async def create_and_start( async def create_and_start(
cls, host: IHost, router: IPubsubRouter, cache_size: int, strict_signing: bool cls, host: IHost, router: IPubsubRouter, cache_size: int, strict_signing: bool
) -> AsyncIterator[Pubsub]: ) -> AsyncIterator[Pubsub]:
pubsub = PubsubFactory( pubsub = cls(
host=host, host=host,
router=router, router=router,
cache_size=cache_size, cache_size=cache_size,