From 2b4d20917dc3198f9a3fce31ffaaa8ed6b538809 Mon Sep 17 00:00:00 2001 From: Fran Corbacho Date: Sun, 16 Jun 2024 16:10:38 +0200 Subject: [PATCH] Fix return type for `__prepare__` method (#19) --- resource/_msg.pyi.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/_msg.pyi.em b/resource/_msg.pyi.em index ffe7e0d..c6ffea9 100644 --- a/resource/_msg.pyi.em +++ b/resource/_msg.pyi.em @@ -48,7 +48,7 @@ class Metaclass_@(message.structure.namespaced_type.name)(type): @@classmethod def __prepare__( cls, __name: str, __bases: typing.Tuple[type, ...], **kwargs: typing.Any - ) -> typing.Mapping[str, typing.Any]: ... + ) -> typing.MutableMapping[str, typing.Any]: ... @[for constant in message.constants]@ @@property def @(constant.name)(self) -> @(to_type_annotation(current_namespace, defined_classes, constant.type).getter): ...