1
0
mirror of synced 2026-01-24 07:01:51 -05:00

Run MyPy on CDK/base-python and fix issues. (#3175)

This commit is contained in:
Davin Chia
2021-05-04 11:02:53 +08:00
committed by GitHub
parent dd45537239
commit 72e7fe35a3
11 changed files with 54 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ from .schema_helpers import ResourceSchemaLoader
def package_name_from_class(cls: object) -> str:
"""Find the package name given a class name"""
module = inspect.getmodule(cls)
module: Any = inspect.getmodule(cls)
return module.__name__.split(".")[0]
@@ -60,7 +60,7 @@ class BaseClient(StreamStateMixin, ABC):
self._schema_loader = self.schema_loader_class(package_name)
self._stream_methods = self._enumerate_methods()
def _enumerate_methods(self) -> Mapping[str, callable]:
def _enumerate_methods(self) -> Mapping[str, Callable]:
"""Detect available streams and return mapping"""
prefix = "stream__"
mapping = {}