diff --git a/src/betterproto/plugin/typing_compiler.py b/src/betterproto/plugin/typing_compiler.py index 0e6f645a..a84e6ebe 100644 --- a/src/betterproto/plugin/typing_compiler.py +++ b/src/betterproto/plugin/typing_compiler.py @@ -141,6 +141,8 @@ class NoTyping310TypingCompiler(TypingCompiler): @staticmethod def _fmt(type: str) -> str: # for now this is necessary till 3.14 + if type.startswith('"'): + return type[1:-1] return type.removeprefix('"').removesuffix('"') def optional(self, type: str) -> str: