Skip to content

Commit ef3aeff

Browse files
committed
Added Type[BaseModel] Annotation
1 parent 8079c01 commit ef3aeff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/rpdk/python/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def generate(self, project):
170170
LOG.debug("Generate complete")
171171

172172
def _pre_package(self, build_path):
173-
f = TemporaryFile("w+b") # pylint: disable=R1732
173+
f = TemporaryFile("w+b")
174174

175175
with zipfile.ZipFile(f, mode="w") as zip_file:
176176
self._recursive_relative_write(build_path, build_path, zip_file)

src/cloudformation_cli_python_lib/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565
self.type_name = type_name
6666
self._model_cls: Type[BaseModel] = resouce_model_cls
6767
self._type_configuration_model_cls: Optional[
68-
BaseModel
68+
Type[BaseModel]
6969
] = type_configuration_model_cls
7070
self._handlers: MutableMapping[Action, HandlerSignature] = {}
7171

src/cloudformation_cli_python_lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class UnmodelledRequest:
140140
def to_modelled(
141141
self,
142142
model_cls: Type[BaseModel],
143-
type_configuration_model_cls: Optional[BaseModel],
143+
type_configuration_model_cls: Optional[Type[BaseModel]],
144144
) -> BaseResourceHandlerRequest:
145145
# pylint: disable=protected-access
146146
return BaseResourceHandlerRequest(

0 commit comments

Comments
 (0)