From 7c6845314f43ad4faa7f1e6e8a4460d1a149dddf Mon Sep 17 00:00:00 2001 From: James Hilton-Balfe Date: Tue, 13 Aug 2024 02:05:07 +0100 Subject: [PATCH] Update typing_compiler.py --- src/betterproto/plugin/typing_compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/betterproto/plugin/typing_compiler.py b/src/betterproto/plugin/typing_compiler.py index 0e6f645ac..a84e6ebe8 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: